25 lines
424 B
TypeScript
25 lines
424 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
build: {
|
|
outDir: "../dist/frontend",
|
|
emptyOutDir: true
|
|
},
|
|
server: {
|
|
host: "0.0.0.0",
|
|
port: 5173,
|
|
proxy: {
|
|
"/api": {
|
|
target: "http://localhost:3000",
|
|
changeOrigin: true
|
|
}
|
|
}
|
|
},
|
|
preview: {
|
|
host: "0.0.0.0",
|
|
port: 5173
|
|
}
|
|
});
|