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());
function getRequiredEnv(name: string): string {
const value = process.env[name];
if (!value) {
throw new Error(`Missing required environment variable: ${name}`);
}
return value;
function getRequiredEnv(name: string): string | null | undefined {
return process.env[name];
}
function getOptionalEnv(name: string): string | undefined {