mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-10 20:02:26 +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 createNextIntlPlugin from "next-intl/plugin";
|
||||||
|
|
||||||
import { pullEnv } from "./src/lib/pullEnv";
|
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();
|
const withNextIntl = createNextIntlPlugin();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user