start bash

This commit is contained in:
2026-04-09 09:43:21 +00:00
parent 5212cab8b6
commit 8409655e66
7 changed files with 245 additions and 7 deletions

View File

@@ -1,6 +1,8 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
const proxyTarget = process.env.VITE_PROXY_TARGET || 'http://localhost:8000'
export default defineConfig({
plugins: [react()],
server: {
@@ -8,11 +10,11 @@ export default defineConfig({
port: 8451,
proxy: {
'/api': {
target: 'http://localhost:8000',
target: proxyTarget,
changeOrigin: true,
},
'/media': {
target: 'http://localhost:8000',
target: proxyTarget,
changeOrigin: true,
},
},