diff options
Diffstat (limited to 'frontend/vite.config.ts')
| -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", + ), + }, }); |
