11 lines
361 B
TypeScript
11 lines
361 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
// Le build est embarqué dans le binaire Go (web/dist).
|
|
build: { outDir: "../web/dist", emptyOutDir: true },
|
|
// `npm run dev` : le serveur Go tourne sur :8080.
|
|
server: { proxy: { "/api": "http://localhost:8080" } },
|
|
});
|