Add proxy for the dev server

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Jonathan
2025-06-14 20:07:44 +02:00
committed by Bryan Frimin
parent 2c263291df
commit 5396e46781

View File

@@ -6,6 +6,14 @@ import { fileURLToPath, URL } from "node:url";
// https://vite.dev/config/
export default defineConfig({
plugins: [react({ babel: { plugins: ["relay"] } }), tailwindcss()],
server: {
proxy: {
"/api": {
target: "http://localhost:8080",
changeOrigin: true,
},
},
},
resolve: {
alias: {
"/type": fileURLToPath(new URL("./src/type.ts", import.meta.url)),