2e14873f2d
Track application source and tests; exclude local env, user workspaces, and runtime data via .gitignore. Co-authored-by: Cursor <cursoragent@cursor.com>
21 lines
386 B
TypeScript
21 lines
386 B
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
const apiProxy = process.env.OPS_API_PROXY ?? 'http://127.0.0.1:8081';
|
|
|
|
export default defineConfig({
|
|
base: '/ops/',
|
|
plugins: [react()],
|
|
server: {
|
|
port: 3002,
|
|
proxy: {
|
|
'/api': apiProxy,
|
|
'/auth': apiProxy,
|
|
},
|
|
},
|
|
build: {
|
|
outDir: 'dist',
|
|
emptyOutDir: true,
|
|
},
|
|
});
|