forked from matijagrcic/azurechatgpt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtype.ts
30 lines (27 loc) · 723 Bytes
/
type.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
const azureEnvVars = [
"AZURE_OPENAI_API_KEY",
"AZURE_OPENAI_API_INSTANCE_NAME",
"AZURE_OPENAI_API_DEPLOYMENT_NAME",
"AZURE_OPENAI_API_VERSION",
"AZURE_OPENAI_API_EMBEDDINGS_DEPLOYMENT_NAME",
"AZURE_COSMOSEDB_URI",
"AZURE_COSMOSEDB_KEY",
"AZURE_SEARCH_API_KEY",
"AZURE_SEARCH_NAME",
"AZURE_SEARCH_INDEX_NAME",
"AZURE_SEARCH_API_VERSION",
"AUTH_GITHUB_ID",
"AUTH_GITHUB_SECRET",
"AZURE_AD_CLIENT_ID",
"AZURE_AD_CLIENT_SECRET",
"AZURE_AD_TENANT_ID",
"NEXTAUTH_SECRET",
"NEXTAUTH_URL",
] as const;
type RequiredServerEnvKeys = (typeof azureEnvVars)[number];
declare global {
namespace NodeJS {
interface ProcessEnv extends Record<RequiredServerEnvKeys, string> {}
}
}
export {};