env: always use .dotenv for now

This commit is contained in:
@wwwjim 2020-07-22 04:37:24 -07:00
parent 0c1faa991a
commit 346eb21b85

View File

@ -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;