2022-02-06 15:11:13 -08:00
|
|
|
const fs = require('fs');
|
|
|
|
|
|
|
|
let PROXY_CONFIG = require('./proxy.conf');
|
|
|
|
|
|
|
|
PROXY_CONFIG.forEach(entry => {
|
2025-01-19 19:48:12 -08:00
|
|
|
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");
|
2022-02-06 15:11:13 -08:00
|
|
|
});
|
|
|
|
|
|
|
|
module.exports = PROXY_CONFIG;
|