mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Remove proxy support in vite server (#6359)
- Does not support OPTIONS requests - No point keeping it around
This commit is contained in:
parent
9a215f97f5
commit
b29d86403e
@ -23,23 +23,6 @@ export default defineConfig({
|
|||||||
outDir: '../../InvenTree/web/static/web'
|
outDir: '../../InvenTree/web/static/web'
|
||||||
},
|
},
|
||||||
server: {
|
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: {
|
watch: {
|
||||||
// use polling only for WSL as the file system doesn't trigger notifications for Linux apps
|
// 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
|
// ref: https://github.com/vitejs/vite/issues/1153#issuecomment-785467271
|
||||||
|
Loading…
Reference in New Issue
Block a user