2021-08-12 21:59:26 +03:00
|
|
|
export const NODE_ENV = process.env.NODE_ENV || "development";
|
2021-08-09 18:03:52 +03:00
|
|
|
export const IS_PRODUCTION = NODE_ENV === "production";
|
2020-07-21 22:53:49 +03:00
|
|
|
export const PORT = process.env.PORT || 1337;
|
2020-09-22 03:36:45 +03:00
|
|
|
export const SOURCE = process.env.SOURCE;
|
2020-07-21 21:01:12 +03:00
|
|
|
|
2020-07-23 04:25:19 +03:00
|
|
|
// NOTE(jim):
|
|
|
|
// In production we don't use .env and manage secrets another way.
|
2020-07-23 03:07:54 +03:00
|
|
|
if (!IS_PRODUCTION) {
|
2020-07-22 21:34:24 +03:00
|
|
|
require("dotenv").config();
|
|
|
|
}
|
|
|
|
|
2020-10-24 23:05:13 +03:00
|
|
|
// NOTE(jim):
|
|
|
|
// Slate
|
2020-07-21 14:36:50 +03:00
|
|
|
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;
|
2020-10-27 07:41:42 +03:00
|
|
|
export const PUBSUB_SECRET = process.env.PUBSUB_SECRET;
|
2020-10-29 21:39:40 +03:00
|
|
|
export const ALLOWED_HOST = process.env.ALLOWED_HOST;
|
2020-10-23 13:34:31 +03:00
|
|
|
export const LOCAL_PASSWORD_ROUNDS_MANUAL = process.env.LOCAL_PASSWORD_ROUNDS_MANUAL;
|
2020-08-11 08:15:39 +03:00
|
|
|
export const LOCAL_PASSWORD_ROUNDS = process.env.LOCAL_PASSWORD_ROUNDS;
|
2021-06-09 01:53:30 +03:00
|
|
|
export const LOCAL_PASSWORD_SECRET = `$2b$${LOCAL_PASSWORD_ROUNDS}$${process.env.LOCAL_PASSWORD_SECRET}`;
|
2020-07-21 21:01:12 +03:00
|
|
|
|
2020-10-24 23:05:13 +03:00
|
|
|
// NOTE(jim): Custom avatars
|
2020-10-06 01:33:37 +03:00
|
|
|
export const AVATAR_SLATE_ID = process.env.AVATAR_SLATE_ID;
|
|
|
|
|
2020-10-24 23:05:13 +03:00
|
|
|
// NOTE(jim): Textile secrets
|
2020-07-21 14:36:50 +03:00
|
|
|
export const TEXTILE_HUB_KEY = process.env.TEXTILE_HUB_KEY;
|
|
|
|
export const TEXTILE_HUB_SECRET = process.env.TEXTILE_HUB_SECRET;
|
2020-09-09 07:51:31 +03:00
|
|
|
export const TEXTILE_HUB_STAGING_HOST = process.env.TEXTILE_HUB_STAGING_HOST;
|
2020-09-11 06:28:23 +03:00
|
|
|
|
2020-10-24 23:05:13 +03:00
|
|
|
// NOTE(jim): Slack updates
|
2020-09-11 06:28:23 +03:00
|
|
|
export const SOCIAL_SLACK_WEBHOOK_KEY = process.env.SOCIAL_SLACK_WEBHOOK_KEY;
|
2020-09-16 21:44:18 +03:00
|
|
|
export const SUPPORT_SLACK_WEBHOOK_KEY = process.env.SUPPORT_SLACK_WEBHOOK_KEY;
|
2020-09-22 03:36:45 +03:00
|
|
|
export const TEXTILE_SLACK_WEBHOOK_KEY = process.env.TEXTILE_SLACK_WEBHOOK_KEY;
|
2020-10-23 13:34:31 +03:00
|
|
|
|
2020-10-24 23:05:13 +03:00
|
|
|
// NOTE(jim): External servers
|
2021-08-04 20:41:41 +03:00
|
|
|
export const URI_SHOVEL = process.env.NEXT_PUBLIC_URI_SHOVEL;
|
|
|
|
export const URI_FIJI = process.env.NEXT_PUBLIC_URI_FIJI;
|
|
|
|
export const URI_LENS = process.env.NEXT_PUBLIC_URI_LENS;
|
2021-06-09 01:53:30 +03:00
|
|
|
|
|
|
|
//NOTE(amine): Twitter
|
|
|
|
export const TWITTER_API_KEY = process.env.TWITTER_API_KEY;
|
|
|
|
export const TWITTER_SECRET_API_KEY = process.env.TWITTER_SECRET_API_KEY;
|
|
|
|
export const TWITTER_CALLBACK = process.env.TWITTER_CALLBACK;
|
|
|
|
|
|
|
|
//NOTE(toast): Sendgrid
|
|
|
|
export const SENDGRID_API_KEY = process.env.SENDGRID_API_KEY;
|
|
|
|
export const SENDGRID_WEBHOOK_KEY = process.env.SENDGRID_WEBHOOK_KEY;
|
2021-07-07 23:50:57 +03:00
|
|
|
|
|
|
|
//NOTE(martina): iFramely
|
|
|
|
export const IFRAMELY_API_KEY = process.env.IFRAMELY_API_KEY;
|
2021-08-18 23:12:57 +03:00
|
|
|
|
|
|
|
//NOTE(martina): Microlink
|
|
|
|
export const MICROLINK_API_KEY = process.env.MICROLINK_API_KEY;
|
2021-09-28 07:16:26 +03:00
|
|
|
|
|
|
|
//NOTE(martina): Estuary
|
|
|
|
export const ESTUARY_API_KEY = process.env.ESTUARY_API_KEY;
|
2021-10-05 01:11:33 +03:00
|
|
|
|
|
|
|
//NOTE(martina): Elastic search
|
2021-10-12 01:27:17 +03:00
|
|
|
export const ELASTIC_SEARCH_CLOUD_ID = process.env.ELASTIC_SEARCH_CLOUD_ID;
|
|
|
|
export const ELASTIC_SEARCH_API_KEY_ID = process.env.ELASTIC_SEARCH_API_KEY_ID;
|
|
|
|
export const ELASTIC_SEARCH_API_KEY = process.env.ELASTIC_SEARCH_API_KEY;
|