mempool/frontend/proxy.conf.staging.js
Felipe Knorr Kuhn 003956fd16
Update staging hosts
Add rerouting logic for testnet4 tests
Split CI e2e workflow matrix into mempool, liquid and testnet4
2025-01-19 19:50:05 -08:00

12 lines
490 B
JavaScript

const fs = require('fs');
let PROXY_CONFIG = require('./proxy.conf');
PROXY_CONFIG.forEach(entry => {
const hostname = process.env.CYPRESS_REROUTE_TESTNET === 'true' ? 'mempool-staging.fra.mempool.space' : 'node201.fmt.mempool.space';
console.log(`e2e tests running against ${hostname}`);
entry.target = entry.target.replace("mempool.space", hostname);
entry.target = entry.target.replace("liquid.network", "liquid-staging.fmt.mempool.space");
});
module.exports = PROXY_CONFIG;