Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dohsimpson committed Feb 27, 2025
1 parent 6881ae6 commit 118a773
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/actions/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,6 @@ export async function deleteUser(userId: string): Promise<void> {

export async function loadServerSettings(): Promise<ServerSettings> {
return {
isDemo: !!process.env.NEXT_PUBLIC_DEMO,
isDemo: !!process.env.DEMO,
}
}
4 changes: 2 additions & 2 deletions lib/env.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import { z } from "zod"

const zodEnv = z.object({
AUTH_SECRET: z.string(),
NEXT_PUBLIC_DEMO: z.string().optional(),
DEMO: z.string().optional(),
})

declare global {
interface ProcessEnv extends z.TypeOf<typeof zodEnv> {
AUTH_SECRET: string;
NEXT_PUBLIC_DEMO?: string;
DEMO?: string;
}
}

Expand Down

0 comments on commit 118a773

Please sign in to comment.