diff --git a/frontend/proxy.conf.local.js b/frontend/proxy.conf.local.js index 5a6d1454e..b1bf0656d 100644 --- a/frontend/proxy.conf.local.js +++ b/frontend/proxy.conf.local.js @@ -42,7 +42,28 @@ if (configContent && configContent.BASE_MODULE === 'liquid') { pathRewrite: { "^/liquid/api/": "/api/v1/" }, - } + }, + { + context: ['/liquidtestnet/api/v1/**'], + target: `http://localhost:8999`, + secure: false, + ws: true, + changeOrigin: true, + proxyTimeout: 30000, + pathRewrite: { + "^/liquidtestnet": "" + }, + }, + { + context: ['/liquidtestnet/api/**'], + target: `http://localhost:8999`, + secure: false, + changeOrigin: true, + proxyTimeout: 30000, + pathRewrite: { + "^/liquidtestnet/api/": "/api/v1/" + }, + }, ]); } diff --git a/frontend/proxy.conf.mixed.js b/frontend/proxy.conf.mixed.js index 6ee44a16f..c0c7157ff 100644 --- a/frontend/proxy.conf.mixed.js +++ b/frontend/proxy.conf.mixed.js @@ -40,6 +40,24 @@ if (configContent && configContent.BASE_MODULE === 'liquid') { changeOrigin: true, proxyTimeout: 30000, }, + { + context: ['/liquidtestnet/api/v1/**'], + target: `http://localhost:8999`, + secure: false, + ws: true, + changeOrigin: true, + proxyTimeout: 30000, + pathRewrite: { + "^/liquidtestnet": "" + }, + }, + { + context: ['/liquidtestnet/api/**'], + target: `https://liquid.network`, + secure: false, + changeOrigin: true, + proxyTimeout: 30000, + }, ]); }