mirror of
https://github.com/filecoin-project/slate.git
synced 2024-12-26 18:44:56 +03:00
26 lines
991 B
JavaScript
26 lines
991 B
JavaScript
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;
|
|
export const POSTGRES_HOSTNAME = process.env.POSTGRES_HOSTNAME;
|
|
export const POSTGRES_DATABASE = process.env.POSTGRES_DATABASE;
|
|
export const JWT_SECRET = process.env.JWT_SECRET;
|
|
|
|
// TODO(jim):
|
|
// Brittle, don't let people know the number of times something is salted.
|
|
// Not a big deal for testing at the moment.
|
|
export const LOCAL_PASSWORD_SECRET = `$2b$13$${
|
|
process.env.LOCAL_PASSWORD_SECRET
|
|
}`;
|
|
|
|
export const TEXTILE_HUB_KEY = process.env.TEXTILE_HUB_KEY;
|
|
export const TEXTILE_HUB_SECRET = process.env.TEXTILE_HUB_SECRET;
|