Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

support local planetscale instance

alrocar5552c25e859e
diff --git a/packages/prisma/edge.ts b/packages/prisma/edge.ts
index 08185a2912..5734e89855 100644
--- a/packages/prisma/edge.ts
+++ b/packages/prisma/edge.ts
@@ -2,7 +2,7 @@ import { Client } from "@planetscale/database";
import { PrismaPlanetScale } from "@prisma/adapter-planetscale";
import { PrismaClient } from "@prisma/client";
-const client = new Client({ url: process.env.DATABASE_URL });
+const client = new Client({ url: process.env.PLANETSCALE_DATABASE_URL || process.env.DATABASE_URL });
const adapter = new PrismaPlanetScale(client);