fix(repo): shoud be fixed now

This commit is contained in:
devaine 2025-10-18 17:21:36 -05:00 committed by Christbru
commit 84ca283a00
26 changed files with 87 additions and 496 deletions

View file

@ -1,26 +1,14 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import jsconfigPaths from "vite-jsconfig-paths";
import tailwindcss from "@tailwindcss/vite";
// 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/, '')
}
}
plugins: [tailwindcss(), react(), jsconfigPaths()],
resolve: {
alias: {
src: "/src",
},
},
preview: {
host: '0.0.0.0',
port: 3000
},
build: {
outDir: 'dist'
}
});