Unify city+cafe into one places page, gate join with on-page modal, and enrich ntfy with icons, tables, and action buttons across portal/API/admin. Co-authored-by: Cursor <cursoragent@cursor.com>
33 lines
722 B
TypeScript
33 lines
722 B
TypeScript
import { defineConfig } from 'vite'
|
||
import react from '@vitejs/plugin-react'
|
||
|
||
/**
|
||
* admin.nomadro.com — Web only; isolated from apps/admin (.cn)
|
||
* 本地默认打本机 API(与门户共用 data/remote-config.json),改价即时生效。
|
||
* 连美国机:VITE_DEV_API=https://api.nomadro.com
|
||
*/
|
||
const DEV_API = process.env.VITE_DEV_API || 'http://127.0.0.1:8080'
|
||
|
||
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',
|
||
},
|
||
})
|
||
|