mirror of
https://github.com/pinry/pinry.git
synced 2026-02-25 07:41:08 +01:00
fix: bug fix for proxy error caused by localhost name error
This commit is contained in:
@@ -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,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user