// We can simulate that with a proxy.
const use_proxy = !!process.env.API_ON_SAME_PORT;
const static_port = use_proxy ? 9998 : 9999;
// We can simulate that with a proxy.
const use_proxy = !!process.env.API_ON_SAME_PORT;
const static_port = use_proxy ? 9998 : 9999;
// Methods to run at the start and end of the mocha testsuite run
// https://mochajs.org/#global-setup-fixtures
// Methods to run at the start and end of the mocha testsuite run
// https://mochajs.org/#global-setup-fixtures
fse.outputFile(workdir + '/theme/config.theme.js', `
Nominatim_Config.Nominatim_API_Endpoint = '${api_endpoint}';
fse.outputFile(workdir + '/theme/config.theme.js', `
Nominatim_Config.Nominatim_API_Endpoint = '${api_endpoint}';