♻️ validate env variables only in DEV

This commit is contained in:
Fred KISSIE
2025-11-05 21:41:29 +01:00
parent 6d349693a7
commit 030f90db2e

View File

@@ -2,8 +2,11 @@ import type { NextConfig } from "next";
import createNextIntlPlugin from "next-intl/plugin";
import { pullEnv } from "./src/lib/pullEnv";
// validate env variables on build and such
pullEnv();
// validate env variables on local dev
if (process.env.NODE_ENV === "development") {
pullEnv();
}
const withNextIntl = createNextIntlPlugin();