From d8bf98766e401cf9be30db24965988306f6834a5 Mon Sep 17 00:00:00 2001 From: Chris Bayliss Date: Thu, 16 Jul 2026 16:34:02 +1000 Subject: [PATCH] fix: fixes type for `NODE_ENV` values Next has it's own set of `NODE_ENV` values that differ slightly from Node's namely a lack of `staging` and `test` instead of `testing`. This one liner deletes staging and changes `testing` to `test`. (Node doesn't exactly specify what the values should be. `development` and `production` are simply de facto standards so Next isn't incorrect it's just annoying) --- src/global.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/global.d.ts b/src/global.d.ts index 22c0ede..dbd14a3 100644 --- a/src/global.d.ts +++ b/src/global.d.ts @@ -1,7 +1,7 @@ // Extends the basic ProcessEnv to include app specific entries namespace NodeJS { interface ProcessEnv { - NODE_ENV?: "development" | "testing" | "staging" | "production"; + NODE_ENV?: "development" | "test" | "production"; PG_URL?: string PG_user?: string PG_host?: string