Add the ability to prepend to the proxy path

This is for applications like Jupyter that aren't base path agnostic.
This commit is contained in:
Asher
2020-07-23 12:37:45 -05:00
parent c67d31580f
commit 7c2ca7d03e
2 changed files with 11 additions and 6 deletions

View File

@@ -24,7 +24,7 @@ export class ProxyHttpProvider extends HttpProvider {
const port = route.base.replace(/^\//, "")
return {
proxy: {
base: `${route.providerBase}/${port}`,
strip: `${route.providerBase}/${port}`,
port,
},
}
@@ -35,7 +35,7 @@ export class ProxyHttpProvider extends HttpProvider {
const port = route.base.replace(/^\//, "")
return {
proxy: {
base: `${route.providerBase}/${port}`,
strip: `${route.providerBase}/${port}`,
port,
},
}