Remove proxy support in vite server (#6359)

- Does not support OPTIONS requests
- No point keeping it around
This commit is contained in:
Oliver 2024-01-29 22:18:25 +11:00 committed by GitHub
parent 9a215f97f5
commit b29d86403e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,23 +23,6 @@ export default defineConfig({
outDir: '../../InvenTree/web/static/web'
},
server: {
proxy: {
'/api': {
target: 'http://localhost:8000',
changeOrigin: true,
secure: true
},
'/media': {
target: 'http://localhost:8000',
changeOrigin: true,
secure: true
},
'/static': {
target: 'http://localhost:8000',
changeOrigin: true,
secure: true
}
},
watch: {
// use polling only for WSL as the file system doesn't trigger notifications for Linux apps
// ref: https://github.com/vitejs/vite/issues/1153#issuecomment-785467271