Skip to content

Commit

Permalink
Merge pull request #27 from oslabs-beta/envUpdate
Browse files Browse the repository at this point in the history
Env update
  • Loading branch information
benmarg committed Jan 5, 2023
2 parents 8fb3bc1 + 58060f7 commit 1910260
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion www/src/env/schema.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { z } from "zod";
*/
export const serverSchema = z.object({
DATABASE_URL: z.string().url(),
NEXT_PUBLIC_ADMIN_PASSWORD: z.string(),
NODE_ENV: z.enum(["development", "test", "production"]),
});

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

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

0 comments on commit 1910260

Please sign in to comment.