Skip to content

Commit 410709d

Browse files
authored
Merge pull request #304 from oslabs-beta/dev
Dev
2 parents 335e1fa + 1910260 commit 410709d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

www/src/env/schema.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { z } from "zod";
77
*/
88
export const serverSchema = z.object({
99
DATABASE_URL: z.string().url(),
10-
NEXT_PUBLIC_ADMIN_PASSWORD: z.string(),
1110
NODE_ENV: z.enum(["development", "test", "production"]),
1211
});
1312

@@ -17,6 +16,7 @@ export const serverSchema = z.object({
1716
* To expose them to the client, prefix them with `NEXT_PUBLIC_`.
1817
*/
1918
export const clientSchema = z.object({
19+
NEXT_PUBLIC_ADMIN_PASSWORD: z.string(),
2020
// NEXT_PUBLIC_CLIENTVAR: z.string(),
2121
});
2222

@@ -27,5 +27,6 @@ export const clientSchema = z.object({
2727
* @type {{ [k in keyof z.infer<typeof clientSchema>]: z.infer<typeof clientSchema>[k] | undefined }}
2828
*/
2929
export const clientEnv = {
30+
NEXT_PUBLIC_ADMIN_PASSWORD: process.env.NEXT_PUBLIC_ADMIN_PASSWORD,
3031
// NEXT_PUBLIC_CLIENTVAR: process.env.NEXT_PUBLIC_CLIENTVAR,
3132
};

0 commit comments

Comments
 (0)