dev server: also proxy /data directory for testing replay from a remote instance locally (#266)
API_BASE_URL will need to be set to 'http://remote.example.com/' instead of 'http://remote.example.com/api/'
This commit is contained in:
parent
92292591ad
commit
3fec2a9f82
@ -43,9 +43,15 @@ module.exports = merge(common, {
|
||||
headers: {
|
||||
Host: devBackendUrl.host,
|
||||
},
|
||||
pathRewrite: { "^/api": "" },
|
||||
ws: true,
|
||||
},
|
||||
|
||||
"/data": {
|
||||
target: devBackendUrl.href,
|
||||
headers: {
|
||||
Host: devBackendUrl.host,
|
||||
},
|
||||
},
|
||||
},
|
||||
// Serve replay service worker file
|
||||
onBeforeSetupMiddleware: (server) => {
|
||||
|
Loading…
Reference in New Issue
Block a user