Fixes a bug where in some cases functions would not read SOFAR_API_TOKEN.
The issue was that export const { SOFAR_API_TOKEN } = process.env; in constants.ts would run before process.env.SOFAR_API_TOKEN = functions.config().sofar_api.token; in cloud-functions/index.ts causing imported SOFAR_API_TOKEN to be undefined.
Fixes a bug where in some cases functions would not read
SOFAR_API_TOKEN
.The issue was that
export const { SOFAR_API_TOKEN } = process.env;
inconstants.ts
would run beforeprocess.env.SOFAR_API_TOKEN = functions.config().sofar_api.token;
incloud-functions/index.ts
causing importedSOFAR_API_TOKEN
to beundefined
.