Updated the vite.config.js

This commit is contained in:
Mathias committed 2023-11-12 23:22:36 +01:00
1 parent 4929baea29
commit 988815a92c
1 file changed
+11
+11
View File
@@ -1,6 +1,17 @@
import {defineConfig} from "vite"; import {defineConfig} from "vite";
import react from "@vitejs/plugin-react"; import react from "@vitejs/plugin-react";
import path from "path";
export default defineConfig({ export default defineConfig({
plugins: [react()], plugins: [react()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
server: {
proxy: {
"/api": "http://localhost:8671/"
}
}
}); });