diff --git a/models/users.ts b/models/users.ts index 550c552..5286a16 100644 --- a/models/users.ts +++ b/models/users.ts @@ -9,6 +9,10 @@ export const SELF_HOSTED_USER = { } export const getSelfHostedUser = cache(async () => { + if (!process.env.DATABASE_URL) { + return null // fix for CI, do not remove + } + return await prisma.user.findFirst({ where: { email: SELF_HOSTED_USER.email }, })