Skip to content

Commit

Permalink
Update vite.config.ts to proxy API requests to the backend server
Browse files Browse the repository at this point in the history
  • Loading branch information
davelopez committed Jul 12, 2024
1 parent aa35aaa commit ab87a22
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/tool_shed/webapp/frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,15 @@ export default defineConfig({
"@": fileURLToPath(new URL("./src", import.meta.url)),
},
},
server: {
proxy: {
"/api": {
// This is the URL of the backend server
// The address is the default when running `make run_test_backend`
target: "http://127.0.0.1:9009/",
changeOrigin: true,
secure: false,
},
},
},
})

0 comments on commit ab87a22

Please sign in to comment.