fix: use env.json in both client and server (#42359)

This commit is contained in:
Oliver Eyton-Williams
2021-06-08 14:12:44 +02:00
committed by GitHub
parent 104cbc596e
commit 3875c6e619
9 changed files with 8 additions and 8 deletions

View File

@@ -3,7 +3,7 @@ const { availableLangs } = require('../../../../config/i18n/all-langs');
const { allowedOrigins } = require('../../../../config/cors-settings');
// homeLocation is being used as a fallback here. If the one provided by the
// client is invalid we default to this.
const { homeLocation } = require('../../../../config/env');
const { homeLocation } = require('../../../../config/env.json');
function getReturnTo(encryptedParams, secret, _homeLocation = homeLocation) {
let params;