From b41382dfeea20912ba14cd337359119f881c3d63 Mon Sep 17 00:00:00 2001 From: softsimon Date: Sat, 22 Jun 2024 08:20:36 +0900 Subject: [PATCH] Local dev accelerations proxy --- frontend/proxy.conf.local-esplora.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/frontend/proxy.conf.local-esplora.js b/frontend/proxy.conf.local-esplora.js index 0cdc9d459..cfed3d02b 100644 --- a/frontend/proxy.conf.local-esplora.js +++ b/frontend/proxy.conf.local-esplora.js @@ -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`,