Skip to content

Commit

Permalink
token
Browse files Browse the repository at this point in the history
  • Loading branch information
thatguyinabeanie committed Nov 8, 2024
1 parent 1b5c88e commit e888537
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/nextjs/src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { z } from "zod";
import { env as authEnv } from "@battle-stadium/auth/env";

export const env = createEnv({
extends: [authEnv, vercel()],
extends: [authEnv, vercel(), uploadthing()],
shared: {
NODE_ENV: z
.enum(["development", "production", "test"])
Expand All @@ -23,6 +23,7 @@ export const env = createEnv({
POSTGRES_URL: z.string().url(),
WEBSOCKET_URL: z.string().optional(),
MEASUREMENT_ID: z.string().default("G-XXXXXXXXXX"),
UPLOADTHING_SECRET: z.string(),
},

/**
Expand All @@ -37,7 +38,6 @@ export const env = createEnv({
* Destructure all variables from `process.env` to make sure they aren't tree-shaken away.
*/
experimental__runtimeEnv: {

NODE_ENV: process.env.NODE_ENV,
NEXT_PUBLIC_CLERK_SIGN_IN_URL: process.env.NEXT_PUBLIC_CLERK_SIGN_IN_URL,
NEXT_PUBLIC_CLERK_SIGN_UP_URL: process.env.NEXT_PUBLIC_CLERK_SIGN_UP_URL,
Expand Down

0 comments on commit e888537

Please sign in to comment.