File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ import { z } from "zod";
7
7
*/
8
8
export const serverSchema = z . object ( {
9
9
DATABASE_URL : z . string ( ) . url ( ) ,
10
- NEXT_PUBLIC_ADMIN_PASSWORD : z . string ( ) ,
11
10
NODE_ENV : z . enum ( [ "development" , "test" , "production" ] ) ,
12
11
} ) ;
13
12
@@ -17,6 +16,7 @@ export const serverSchema = z.object({
17
16
* To expose them to the client, prefix them with `NEXT_PUBLIC_`.
18
17
*/
19
18
export const clientSchema = z . object ( {
19
+ NEXT_PUBLIC_ADMIN_PASSWORD : z . string ( ) ,
20
20
// NEXT_PUBLIC_CLIENTVAR: z.string(),
21
21
} ) ;
22
22
@@ -27,5 +27,6 @@ export const clientSchema = z.object({
27
27
* @type {{ [k in keyof z.infer<typeof clientSchema>]: z.infer<typeof clientSchema>[k] | undefined } }
28
28
*/
29
29
export const clientEnv = {
30
+ NEXT_PUBLIC_ADMIN_PASSWORD : process . env . NEXT_PUBLIC_ADMIN_PASSWORD ,
30
31
// NEXT_PUBLIC_CLIENTVAR: process.env.NEXT_PUBLIC_CLIENTVAR,
31
32
} ;
You can’t perform that action at this time.
0 commit comments