Skip to content

Commit

Permalink
final proxy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldietzler committed Jul 4, 2024
1 parent 00ca9c9 commit 7698c64
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion web/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ export default defineConfig({
},
server: {
proxy: {
'/api': { target: 'http://uftos-api:8080', changeOrigin: true, ws: true },
'/api': {
target: 'http://uftos-api:8080',
changeOrigin: true,
ws: true,
rewrite: (path) => path.replace(/^\/api/, ''),
},
},
},
});

0 comments on commit 7698c64

Please sign in to comment.