mirror of
https://github.com/filecoin-project/slate.git
synced 2024-12-23 00:51:32 +03:00
env: always use .dotenv for now
This commit is contained in:
parent
0c1faa991a
commit
346eb21b85
@ -1,12 +1,10 @@
|
||||
require("dotenv").config();
|
||||
|
||||
export const NODE = process.env.NODE_ENV;
|
||||
export const IS_PRODUCTION = NODE === "production" || NODE === "www";
|
||||
export const IS_PRODUCTION_WEB = NODE === "www";
|
||||
export const PORT = process.env.PORT || 1337;
|
||||
|
||||
if (!IS_PRODUCTION_WEB) {
|
||||
require("dotenv").config();
|
||||
}
|
||||
|
||||
export const IS_LOCAL_WEB = !IS_PRODUCTION;
|
||||
export const POSTGRES_ADMIN_PASSWORD = process.env.POSTGRES_ADMIN_PASSWORD;
|
||||
export const POSTGRES_ADMIN_USERNAME = process.env.POSTGRES_ADMIN_USERNAME;
|
||||
|
Loading…
Reference in New Issue
Block a user