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.

Update route.ts

Steven Tey6e146a7eaa2d
diff --git a/apps/web/app/api/auth/account-exists/route.ts b/apps/web/app/api/auth/account-exists/route.ts
index 69019f6714..b601ca838b 100644
--- a/apps/web/app/api/auth/account-exists/route.ts
+++ b/apps/web/app/api/auth/account-exists/route.ts
@@ -1,5 +1,5 @@
import { isWhitelistedEmail } from "@/lib/edge-config";
-import { DATABASE_URL, conn } from "@/lib/planetscale";
+import { conn } from "@/lib/planetscale";
import { ratelimit } from "@/lib/upstash";
import { ipAddress } from "@vercel/functions";
import { NextRequest, NextResponse } from "next/server";
@@ -15,12 +15,6 @@ export async function POST(req: NextRequest) {
const { email } = (await req.json()) as { email: string };
- if (!DATABASE_URL) {
- return new Response("Database connection not established", {
- status: 500,
- });
- }
-
if (!process.env.NEXT_PUBLIC_IS_DUB) {
return NextResponse.json({ accountExists: true, hasPassword: true });
}