fix: bug fix for proxy error caused by localhost name error

This commit is contained in:
winkidney
2024-09-30 20:11:05 +08:00
parent 5fe2ed8a4c
commit 5cb77170a2

View File

@@ -2,16 +2,16 @@ module.exports = {
devServer: {
proxy: {
'/api': {
target: 'http://localhost:8000/',
target: 'http://127.0.0.1:8000/',
changeOrigin: true,
ws: true,
},
'/media': {
target: 'http://localhost:8000/',
target: 'http://127.0.0.1:8000/',
changeOrigin: true,
},
'/static/js/': {
target: 'http://localhost:8000/',
target: 'http://127.0.0.1:8000/',
changeOrigin: true,
},
},