-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenv.d.ts
63 lines (52 loc) · 1.13 KB
/
env.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
type BackendSecrets = {
MEDUSA_BACKEND_SERVICE_EMAIL: string,
MEDUSA_BACKEND_SERVICE_PASSWORD: string
}
type DatabaseEnv = {
REDIS_URL: string;
DATABASE_TYPE: string;
DATABASE_URL: string;
DB_USER: string;
DB_PASSWORD: string;
DB_HOST: string;
DB_PORT: string;
DB_NAME: string;
}
type SessionSecret = {
JWT_SECRET: string;
COOKIE_SECRET: string
}
type CORSSecret = {
STORE_CORS: string;
ADMIN_CORS: string;
}
type ServicesAPIKeys = {
// openai
OPENAI_API_KEY: string;
// sendgrid
SENDGRID_API_KEY: string;
SENDGRID_FROM: string;
SEGMENT_WRITE_KEY: string;
// meilisearch
MEILISEARCH_API_KEY: string;
MEILISEARCH_HOST: string;
// google
KEY_FILE_PATH: string;
}
type AWSEnv = {
AWS_ACCESS_KEY_ID: string,
AWS_BUCKET: string,
AWS_REGION: string,
AWS_SECRET_ACCESS_KEY: string,
AWS_URL: string,
}
type GoogleSheetEnv = {
GSHEET_ID: string;
PRODUCT_SHEET_NAME: string;
DROPDOWN_LIST_SHEET_NAME: string;
}
declare namespace NodeJS {
interface ProcessEnv extends BackendSecrets, DatabaseEnv, SessionSecret, CORSSecret, ServicesAPIKeys, AWSEnv, GoogleSheetEnv {
BASE_URL: string;
}
}