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 31, 2023
1 parent 675e5c5 commit 26eb0d1
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 26eb0d1

Please sign in to comment.