mirror of
https://github.com/filecoin-project/slate.git
synced 2024-09-11 22:07:08 +03:00
fix(env): add NODE_ENV back because NEXT_PUBLIC doesn't work with dotenv
This commit is contained in:
parent
4b7b2498ac
commit
08b45a7bf7
@ -1,4 +1,4 @@
|
||||
export const NODE_ENV = process.env.NEXT_PUBLIC_NODE_ENV;
|
||||
export const NODE_ENV = process.env.NEXT_PUBLIC_NODE_ENV || "development";
|
||||
|
||||
//NOTE(amine): feature flags
|
||||
export const ACTIVITY_FEATURE_FLAG = NODE_ENV === "development" || NODE_ENV === "staging";
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* eslint-disable prefer-destructuring */
|
||||
export const NODE_ENV = process.env.NEXT_PUBLIC_NODE_ENV;
|
||||
export const NODE_ENV = process.env.NODE_ENV || "development";
|
||||
export const IS_PRODUCTION = NODE_ENV === "production";
|
||||
export const PORT = process.env.PORT || 1337;
|
||||
export const SOURCE = process.env.SOURCE;
|
||||
|
Loading…
Reference in New Issue
Block a user