nomadro/apps/com/admin/vite.config.ts
Eric 3e60ba1a1b Ship social places/join UX, room-archive ops, and rich Markdown ntfy alerts.
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>
2026-11-05 12:21:01 +08:00

33 lines
722 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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',
},
})