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:
Ilya Kreymer 2022-06-29 15:47:20 -07:00 committed by GitHub
parent 92292591ad
commit 3fec2a9f82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) => {