Updated the vite.config.js

This commit is contained in:
2024-02-15 00:50:08 +01:00
parent 02f07e6070
commit ea7e245980

View File

@@ -1,7 +1,18 @@
import { defineConfig } from 'vite' import {defineConfig} from "vite";
import react from '@vitejs/plugin-react' import react from "@vitejs/plugin-react";
import path from "path";
// https://vitejs.dev/config/
export default defineConfig({ export default defineConfig({
plugins: [react()], plugins: [react()],
}) server: {
proxy: {
"/api": "http://localhost:7865",
"/proxy": "http://localhost:7865"
}
},
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
});