amerc/vite.config.js
artheru b055663372 amerc suite: 2D pixel tavern + zero-dep auth/admin/docs/pm backend
- Scene2D pixel tavern (replaces three.js 3D scene)
- amerc-api: node:http+node:sqlite+node:crypto, auth/admin/docs/files/boards
- docs.amerc.ai + pm.amerc.ai (whiteboard mindmap + netdisk) apps
- agent API keys for fleet read/write

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-09 06:03:40 +08:00

21 lines
475 B
JavaScript

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
const apiProxy = { '/api': { target: process.env.AMERC_API || 'http://127.0.0.1:5180', changeOrigin: true } };
export default defineConfig({
plugins: [react()],
server: { proxy: apiProxy },
preview: { proxy: apiProxy },
build: {
chunkSizeWarningLimit: 800,
rollupOptions: {
output: {
manualChunks: {
three: ['three'],
},
},
},
},
});