From 5396e46781cb5f99d04daa6f80733c6987350231 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Sat, 14 Jun 2025 20:07:44 +0200 Subject: [PATCH] Add proxy for the dev server Signed-off-by: Bryan Frimin --- apps/console/vite.config.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/console/vite.config.ts b/apps/console/vite.config.ts index 42b9be8ea..3a73561ab 100644 --- a/apps/console/vite.config.ts +++ b/apps/console/vite.config.ts @@ -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)),