We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e86e851 commit 0a1523aCopy full SHA for 0a1523a
config/envVarCheck.ts
@@ -7,13 +7,11 @@ import { loadEnv } from "./config";
7
* ---
8
*/
9
export function validateEnv() {
10
- //pass empty object as env and fromWorkerEnv = false, since this method is should get executed in github actions and not in worker
11
const env: env = loadEnv({}, false);
12
const missingEnvVariables = Object.keys(env).filter(
13
(key) => env[key] == ""
14
);
15
16
- // Logging missing environment variables and throw error if any are missing
17
if (missingEnvVariables.length > 0) {
18
throw new Error(
19
`Missing environment variables: ${missingEnvVariables.join(", ")}`
0 commit comments