21 lines
400 B
TypeScript
21 lines
400 B
TypeScript
import { fileURLToPath } from "node:url";
|
|
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
const root = fileURLToPath(new URL(".", import.meta.url));
|
|
|
|
export default defineConfig({
|
|
root,
|
|
plugins: [react()],
|
|
server: {
|
|
port: 5173,
|
|
proxy: {
|
|
"/api": "http://localhost:8787"
|
|
}
|
|
},
|
|
build: {
|
|
outDir: "../dist/web",
|
|
emptyOutDir: true
|
|
}
|
|
});
|