Create frontend/vite.config.js
Browse files- frontend/vite.config.js +10 -0
frontend/vite.config.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { defineConfig } from "vite";
|
| 2 |
+
import react from "@vitejs/plugin-react";
|
| 3 |
+
|
| 4 |
+
export default defineConfig({
|
| 5 |
+
plugins: [react()],
|
| 6 |
+
build: {
|
| 7 |
+
outDir: "../app/frontend_dist", // output goes into FastAPI app folder
|
| 8 |
+
emptyOutDir: true
|
| 9 |
+
}
|
| 10 |
+
});
|