diff options
| author | Jan Tuomi <jan.tuomi@valuemotive.com> | 2021-11-07 22:13:49 +0200 |
|---|---|---|
| committer | Jan Tuomi <jan.tuomi@valuemotive.com> | 2021-11-07 22:13:49 +0200 |
| commit | 7991ad93470cf42b9c4c96477fc920bbb8899eee (patch) | |
| tree | 2e066c5ffd4895f2bafede1f92cb1cdc08557b4d /src/config.ts | |
| parent | 2c5c47e3c5343419a6efa618b9d6549394da2e9f (diff) | |
Prepare for move to DO
Diffstat (limited to 'src/config.ts')
| -rw-r--r-- | src/config.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/config.ts b/src/config.ts index ca60b97..4e034fa 100644 --- a/src/config.ts +++ b/src/config.ts @@ -15,6 +15,7 @@ class ConfigError extends Error { const nodeEnv = process.env.NODE_ENV || "development"; const port = process.env.PORT ? Number(process.env.PORT) : 3000; +const authToken = process.env.AUTH_TOKEN || ""; const tgWebhookUrl = process.env.TELEGRAM_WEBHOOK_URL || null; if (!tgWebhookUrl) { @@ -55,6 +56,7 @@ fs.writeFileSync(googleSaJsonPath, googleSaJsonUtf8); const config = { nodeEnv, port, + authToken, tgWebhookUrl, tgBotToken, sheetsSpreadsheetId, |
