Skip to content

Commit

Permalink
update env schema
Browse files Browse the repository at this point in the history
  • Loading branch information
jthrilly committed Oct 10, 2023
1 parent aebfbef commit 262dc82
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions env.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,17 @@ export const env = createEnv({
*/
server: {
DATABASE_URL: z.string().url(),
NODE_ENV: z
.enum(["development", "test", "production"])
.default("development"),
VERCEL_URL: z.string().url().optional(),
},

/**
* Specify your client-side environment variables schema here. This way you can ensure the app
* isn't built with invalid env vars. To expose them to the client, prefix them with
* `NEXT_PUBLIC_`.
*/
client: {
NEXT_PUBLIC_URL: z.string().url(),
},
client: {},
shared: {
NEXT_PUBLIC_URL: z.string().url().optional(),
VERCEL_URL: z.string().optional(),
NODE_ENV: z
.enum(["development", "test", "production"])
.default("development"),
Expand Down

0 comments on commit 262dc82

Please sign in to comment.