-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.d.ts
More file actions
123 lines (100 loc) Β· 8.97 KB
/
env.d.ts
File metadata and controls
123 lines (100 loc) Β· 8.97 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
// π π π π π π π π π π π π π π π π π π π π π π
// π THIS IS AN AUTOGENERATED FILE - DO NOT EDIT DIRECTLY π
// π π π π π π π π π π π π π π π π π π π π π π
/* eslint-disable */
export type CoercedEnvSchema = {
/**
* **VERCEL_ENV**
* 
*/
VERCEL_ENV?: "development" | "preview" | "production";
/**
* **APP_ENV**
* 
*/
APP_ENV: "development" | "preview" | "production" | "test";
/**
* **NEXT_PUBLIC_APP_URL**
* App URL
* 
*/
NEXT_PUBLIC_APP_URL: string;
/**
* **DATABASE_URL**
* Database
* 
*/
DATABASE_URL: string;
/**
* **DATABASE_URLDEV**
* 
*/
DATABASE_URLDEV: string;
/**
* **GROQ_API_KEY** π _sensitive_
* 
*/
GROQ_API_KEY: string;
/**
* **BETTER_AUTH_URL**
* Better Auth
* 
*/
BETTER_AUTH_URL: string;
/**
* **BETTER_AUTH_SECRET** π _sensitive_
* 
*/
BETTER_AUTH_SECRET: string;
/**
* **R2_ACCOUNT_ID**
* Cloudflare R2 Storage (for resume uploads)
* 
*/
R2_ACCOUNT_ID: string;
/**
* **R2_ACCESS_KEY_ID**
* 
*/
R2_ACCESS_KEY_ID: string;
/**
* **R2_SECRET_ACCESS_KEY** π _sensitive_
* 
*/
R2_SECRET_ACCESS_KEY: string;
/**
* **R2_BUCKET_NAME**
* 
*/
R2_BUCKET_NAME: string;
/**
* **R2_PUBLIC_URL**
* 
*/
R2_PUBLIC_URL: string;
/**
* **R2_TOKEN_VALUE** π _sensitive_
* 
*/
R2_TOKEN_VALUE: string;
};
declare module 'varlock/env' {
export interface TypedEnvSchema extends Readonly<CoercedEnvSchema> {}
export interface PublicTypedEnvSchema extends Readonly<Pick<CoercedEnvSchema, 'VERCEL_ENV' | 'APP_ENV' | 'NEXT_PUBLIC_APP_URL' | 'DATABASE_URL' | 'DATABASE_URLDEV' | 'BETTER_AUTH_URL' | 'R2_ACCOUNT_ID' | 'R2_ACCESS_KEY_ID' | 'R2_BUCKET_NAME' | 'R2_PUBLIC_URL'>> {}
}
export type EnvSchemaAsStrings = {
[Property in keyof CoercedEnvSchema]:
CoercedEnvSchema[Property] extends string ? CoercedEnvSchema[Property]
: (CoercedEnvSchema[Property] extends boolean ? ('true' | 'false') : string)
};
declare global {
// add types for global import.meta.env
interface ImportMetaEnv extends EnvSchemaAsStrings {}
interface ImportMeta {
readonly env: ImportMetaEnv;
}
// add types for global process.env
namespace NodeJS {
interface ProcessEnv extends EnvSchemaAsStrings {}
}
}