File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -7,18 +7,13 @@ export const env = createEnv({
7
7
SOURCEBOT_EE_LICENSE_KEY : z . string ( ) . optional ( ) ,
8
8
SOURCEBOT_PUBLIC_KEY_PATH : z . string ( ) ,
9
9
} ,
10
- // @NOTE : Please make sure of the following:
11
- // - Make sure you destructure all client variables in
12
- // the `runtimeEnv` block below.
13
- // - Update the Dockerfile to pass these variables as build-args.
14
10
client : {
15
11
NEXT_PUBLIC_SOURCEBOT_CLOUD_ENVIRONMENT : z . enum ( SOURCEBOT_CLOUD_ENVIRONMENT ) . optional ( ) ,
16
12
} ,
17
13
clientPrefix : "NEXT_PUBLIC_" ,
18
- runtimeEnv : {
19
- ...process . env ,
20
-
21
- // For Next.js >= 13.4.4, you need to manually destructure client variables:
14
+ runtimeEnvStrict : {
15
+ SOURCEBOT_EE_LICENSE_KEY : process . env . SOURCEBOT_EE_LICENSE_KEY ,
16
+ SOURCEBOT_PUBLIC_KEY_PATH : process . env . SOURCEBOT_PUBLIC_KEY_PATH ,
22
17
NEXT_PUBLIC_SOURCEBOT_CLOUD_ENVIRONMENT : process . env . NEXT_PUBLIC_SOURCEBOT_CLOUD_ENVIRONMENT ,
23
18
} ,
24
19
emptyStringAsUndefined : true ,
You can’t perform that action at this time.
0 commit comments