diff --git a/.env.development b/.env.development index 66db44e..f5603e3 100644 --- a/.env.development +++ b/.env.development @@ -1 +1 @@ -VITE_BASE_URL = 'http://localhost:5157' \ No newline at end of file +VITE_BASE_URL=/api diff --git a/vite.config.ts b/vite.config.ts index 2acf118..68aece1 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -15,6 +15,13 @@ export default defineConfig({ }, server: { host: '0.0.0.0', - port: 5158 + port: 5158, + proxy: { + "/api": { + target: "http://localhost:5157", + changeOrigin: true, + rewrite: (path) => path.replace(/^\/api/, ""), + }, + }, } })