Shield external portal jumps (keep EXTERNAL_* for later), serve /nav from static build, and proxy /book + /community to vertical Next apps with Caddy notes. Co-authored-by: Cursor <cursoragent@cursor.com>
19 lines
370 B
TypeScript
19 lines
370 B
TypeScript
import { defineConfig } from 'vite'
|
||
import react from '@vitejs/plugin-react'
|
||
|
||
// 生产独立域名 dyadmin.nomadro.cn,base 用 /
|
||
export default defineConfig({
|
||
plugins: [react()],
|
||
base: '/',
|
||
server: {
|
||
port: 5173,
|
||
proxy: {
|
||
'/api': 'http://127.0.0.1:8000',
|
||
'/health': 'http://127.0.0.1:8000',
|
||
},
|
||
},
|
||
build: {
|
||
outDir: 'dist',
|
||
},
|
||
})
|