summaryrefslogtreecommitdiff
path: root/frontend/vite.config.ts
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/vite.config.ts')
-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
new file mode 100644
index 0000000..dd8afab
--- /dev/null
+++ b/frontend/vite.config.ts
@@ -0,0 +1,16 @@
+import { defineConfig } from 'vite'
+import react from '@vitejs/plugin-react'
+
+// https://vitejs.dev/config/
+export default defineConfig({
+ server: {
+ proxy: {
+ '/api': {
+ target: 'http://localhost:5102',
+ changeOrigin: true,
+ rewrite: (path) => path.replace(/^\/api/, ''),
+ }
+ }
+ },
+ plugins: [react()],
+})