mirror of
https://github.com/fosrl/pangolin.git
synced 2026-01-28 22:00:51 +00:00
♻️ validate env variables only in DEV
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user