Local dev accelerations proxy

This commit is contained in:
softsimon 2024-06-22 08:20:36 +09:00
parent 8d66374374
commit b41382dfee
No known key found for this signature in database
GPG key ID: 488D7DCFB5A430D7

View file

@ -78,6 +78,17 @@ PROXY_CONFIG.push(...[
"^/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/**'],
target: `http://localhost:9000`,