diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-07-11 01:20:38 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-07-11 01:20:41 +0900 |
| commit | c25c6cedb637a12f7f34760b828d214f2b27cf1d (patch) | |
| tree | 71972d65eb813c0e3bd36823aec0b58bc4f6dbb6 | |
| parent | c1c22a7cc7310dfc601c3359122f2fd471193faf (diff) | |
| download | feedaka-c25c6cedb637a12f7f34760b828d214f2b27cf1d.tar.gz feedaka-c25c6cedb637a12f7f34760b828d214f2b27cf1d.tar.zst feedaka-c25c6cedb637a12f7f34760b828d214f2b27cf1d.zip | |
feat(frontend): setup Vite
| -rw-r--r-- | frontend/vite.config.ts | 16 |
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", + ), + }, }); |
