fix: remove invariant on non accessible var

This commit is contained in:
Nicola Zambello 2023-02-18 20:38:02 +01:00
parent cf3b79d4aa
commit 7ed31b8426
Signed by: nzambello
GPG key ID: 56E4A92C2C1E50BA

View file

@ -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}`);