fix message
continuous-integration/drone/push Build is failing

This commit is contained in:
2026-04-20 17:02:34 +01:00
parent dcccc2be47
commit 8e9c997f25
+2 -6
View File
@@ -2,12 +2,8 @@ import { loadEnvConfig } from "@next/env";
loadEnvConfig(process.cwd()); loadEnvConfig(process.cwd());
function getRequiredEnv(name: string): string { function getRequiredEnv(name: string): string | null | undefined {
const value = process.env[name]; return process.env[name];
if (!value) {
throw new Error(`Missing required environment variable: ${name}`);
}
return value;
} }
function getOptionalEnv(name: string): string | undefined { function getOptionalEnv(name: string): string | undefined {