Prep build setup for stack

This commit is contained in:
Christbru 2025-10-18 15:26:44 -05:00
commit bd2ffee9ae
14 changed files with 668 additions and 91 deletions

View file

@ -5,4 +5,22 @@ import jsconfigPaths from "vite-jsconfig-paths";
// https://vite.dev/config/
export default defineConfig({
plugins: [react(), jsconfigPaths()],
server: {
host: '0.0.0.0',
port: 3000,
proxy: {
'/api': {
target: process.env.RUST_ENGINE_URL || 'http://localhost:8000',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '')
}
}
},
preview: {
host: '0.0.0.0',
port: 3000
},
build: {
outDir: 'dist'
}
});