From 7ed31b84260a9455a77a874acc801eb50f57789d Mon Sep 17 00:00:00 2001 From: nzambello Date: Sat, 18 Feb 2023 20:38:02 +0100 Subject: [PATCH] fix: remove invariant on non accessible var --- app/db.server.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/db.server.ts b/app/db.server.ts index e71c046..37f5883 100644 --- a/app/db.server.ts +++ b/app/db.server.ts @@ -24,8 +24,6 @@ if (process.env.NODE_ENV === 'production') { } function getClient() { - invariant(typeof DATABASE_URL === 'string', 'DATABASE_URL env var not set'); - const databaseUrl = new URL(DATABASE_URL); console.log(`🔌 setting up prisma client to ${databaseUrl.host}`);