Skip to content

Commit

Permalink
Config: Add proxy config
Browse files Browse the repository at this point in the history
  • Loading branch information
2YH02 committed Feb 23, 2024
1 parent 9a1f7c3 commit 8db9022
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,14 @@ export default defineConfig({
VitePluginHtmlEnv(),
VitePluginHtmlEnv({ compiler: true }),
],
server: {
proxy: {
"/api/v1": {
target: "http://128.134.184.2:9452",
changeOrigin: true,
secure: false,
rewrite: (path) => path.replace(/^\/api\/v1/, '')
},
},
},
});

0 comments on commit 8db9022

Please sign in to comment.