Skip to content

Commit

Permalink
revert env.js
Browse files Browse the repository at this point in the history
  • Loading branch information
iglooe committed May 8, 2024
1 parent f22df0a commit 734c9f8
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions src/env.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ export const env = createEnv({
*/
server: {
POSTGRES_URL: z.string().url(),
CLERK_SECRET_KEY: z.string(),
UPLOADTHING_SECRET: z.string(),
UPLOADTHING_APP_ID: z.string(),
UPSTASH_REDIS_REST_URL: z.string().url().optional(),
UPSTASH_REDIS_REST_TOKEN: z.string().optional(),
SENTRY_AUTH_TOKEN: z.string().optional(),
NODE_ENV: z
.enum(["development", "test", "production"])
.default("development"),
Expand All @@ -25,7 +19,7 @@ export const env = createEnv({
* `NEXT_PUBLIC_`.
*/
client: {
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: z.string().optional(),
// NEXT_PUBLIC_CLIENTVAR: z.string(),
},

/**
Expand All @@ -35,13 +29,7 @@ export const env = createEnv({
runtimeEnv: {
POSTGRES_URL: process.env.POSTGRES_URL,
NODE_ENV: process.env.NODE_ENV,
UPLOADTHING_SECRET: process.env.UPLOADTHING_SECRET,
UPLOADTHING_APP_ID: process.env.UPLOADTHING_APP_ID,
SENTRY_AUTH_TOKEN: process.env.SENTRY_AUTH_TOKEN,
UPSTASH_REDIS_REST_URL: process.env.UPSTASH_REDIS_REST_URL,
UPSTASH_REDIS_REST_TOKEN: process.env.UPSTASH_REDIS_REST_TOKEN,
CLERK_SECRET_KEY: process.env.CLERK_SECRET_KEY,
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: process.env.NEXT_PUBLIC_CLIENTVAR,
// NEXT_PUBLIC_CLIENTVAR: process.env.NEXT_PUBLIC_CLIENTVAR,
},
/**
* Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially
Expand Down

0 comments on commit 734c9f8

Please sign in to comment.