chore(init): 初始化解忧商行项目并完成 Phase 0 基座

This commit is contained in:
yml2213
2026-10-30 11:46:10 +08:00
commit 8d9481c251
689 changed files with 138703 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
const backendPort = process.env.DEV_BACKEND_PORT || '18088'
const apiProxyTarget = process.env.VITE_API_PROXY_TARGET || `http://127.0.0.1:${backendPort}`
const distributionPort = Number(process.env.DEV_DISTRIBUTION_PORT || process.env.PORT || 5190)
export default defineConfig({
plugins: [react()],
server: {
port: distributionPort,
allowedHosts: true,
proxy: {
'/api': {
target: apiProxyTarget,
changeOrigin: true,
},
},
},
})