Skip to content

Commit

Permalink
feat(webapp): add API-proxy to test dev build against prod API
Browse files Browse the repository at this point in the history
  • Loading branch information
Rotzbua committed Nov 8, 2023
1 parent b9cd021 commit 129bf16
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions www/webapp/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ export default defineConfig({
],
server: {
port: 8080,
proxy: {
'/api': {
target: "https://desec.io",
changeOrigin: true,
secure: true,
// rewrite: path => path.replace('/api', ''),
}
}
},
resolve: {
alias: [{
Expand Down

0 comments on commit 129bf16

Please sign in to comment.