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 Aug 2, 2023
1 parent a008b59 commit 616af2f
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 616af2f

Please sign in to comment.