From c25c6cedb637a12f7f34760b828d214f2b27cf1d Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 11 Jul 2025 01:20:38 +0900 Subject: feat(frontend): setup Vite --- frontend/vite.config.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'frontend') 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", + ), + }, }); -- cgit v1.2.3-70-g09d2