Pay-then-profile join desk with live card, S3 upload fallback, hydration-safe drafts; document on test9 README. Co-authored-by: Cursor <cursoragent@cursor.com>
33 lines
719 B
TypeScript
33 lines
719 B
TypeScript
import { defineConfig } from 'vite'
|
||
import react from '@vitejs/plugin-react'
|
||
|
||
/**
|
||
* admin.nomadro.com — Web only; isolated from apps/admin (.cn)
|
||
* 本地调试默认反代美国 VPS API(后端在服务器,前端本机)。
|
||
* 若要打本地 API:设 VITE_DEV_API=http://127.0.0.1:8080
|
||
*/
|
||
const DEV_API = process.env.VITE_DEV_API || 'https://api.nomadro.com'
|
||
|
||
export default defineConfig({
|
||
plugins: [react()],
|
||
server: {
|
||
port: 5174,
|
||
proxy: {
|
||
'/api': {
|
||
target: DEV_API,
|
||
changeOrigin: true,
|
||
secure: true,
|
||
},
|
||
'/health': {
|
||
target: DEV_API,
|
||
changeOrigin: true,
|
||
secure: true,
|
||
},
|
||
},
|
||
},
|
||
build: {
|
||
outDir: 'dist',
|
||
},
|
||
})
|
||
|