nomadro/apps/com/admin/vite.config.ts
Eric ffa456afdf Ship social join profile + SeaweedFS avatars, notify/coffee, and .com audience stack.
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>
2026-11-04 02:25:05 +08:00

33 lines
719 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)
* 本地调试默认反代美国 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',
},
})