Skip to content

Commit

Permalink
Update vite proxy config to follow redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
flomei committed Jul 21, 2024
1 parent b44c8de commit a281fb4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ export default defineConfig({
'@': path.resolve(__dirname, './src'),
},
},
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
test: {
environment: 'jsdom',
globals: true,
Expand All @@ -22,6 +24,7 @@ export default defineConfig({
target: 'https://corpora.linguistik.uni-erlangen.de/cwb-cads-dev',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''),
followRedirects: true,
},
},
},
Expand Down

0 comments on commit a281fb4

Please sign in to comment.