Local dev accelerations proxy
This commit is contained in:
parent
8d66374374
commit
b41382dfee
@ -78,6 +78,17 @@ PROXY_CONFIG.push(...[
|
|||||||
"^/testnet": ""
|
"^/testnet": ""
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
/* Optional proxy to route dev to official acceleration services
|
||||||
|
{
|
||||||
|
context: ['/api/v1/services/accelerator/**'],
|
||||||
|
target: `https://mempool.space/api/v1/services/accelerator/`,
|
||||||
|
secure: false,
|
||||||
|
changeOrigin: true,
|
||||||
|
proxyTimeout: 30000,
|
||||||
|
pathRewrite: {
|
||||||
|
"^/api/v1/services/accelerator": ""
|
||||||
|
},
|
||||||
|
*/
|
||||||
{
|
{
|
||||||
context: ['/api/v1/services/**'],
|
context: ['/api/v1/services/**'],
|
||||||
target: `http://localhost:9000`,
|
target: `http://localhost:9000`,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user