Updated the vite.config.js

This commit is contained in:
Mathias Wagner 2024-02-15 00:50:08 +01:00
parent 02f07e6070
commit ea7e245980
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

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