aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--frontend/vite.config.ts16
1 files changed, 16 insertions, 0 deletions
diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts
index 2001908..69cc0dc 100644
--- a/frontend/vite.config.ts
+++ b/frontend/vite.config.ts
@@ -4,4 +4,20 @@ import { defineConfig } from "vite";
export default defineConfig({
plugins: [react(), tailwindcss()],
+ server: {
+ proxy: {
+ "/graphql": {
+ target: "http://localhost:8080",
+ changeOrigin: true,
+ },
+ },
+ hmr: {
+ overlay: true,
+ },
+ },
+ define: {
+ "process.env.NODE_ENV": JSON.stringify(
+ process.env.NODE_ENV || "development",
+ ),
+ },
});