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.

don't use edge

Steven Tey45bacbf1348e
diff --git a/apps/web/app/app.dub.co/(share)/share/[dashboardId]/page.tsx b/apps/web/app/app.dub.co/(share)/share/[dashboardId]/page.tsx
index cc085ba61d..839a9845da 100644
--- a/apps/web/app/app.dub.co/(share)/share/[dashboardId]/page.tsx
+++ b/apps/web/app/app.dub.co/(share)/share/[dashboardId]/page.tsx
@@ -10,7 +10,6 @@ import { Suspense } from "react";
import DashboardPasswordForm from "./form";
export const dynamic = "force-dynamic";
-export const runtime = "edge";
export async function generateMetadata({
params,
diff --git a/apps/web/lib/fetchers/get-dashboard.ts b/apps/web/lib/fetchers/get-dashboard.ts
index fb386dc763..85b923298b 100644
--- a/apps/web/lib/fetchers/get-dashboard.ts
+++ b/apps/web/lib/fetchers/get-dashboard.ts
@@ -1,8 +1,8 @@
-import { prismaEdge } from "@dub/prisma/edge";
+import { prisma } from "@dub/prisma";
import { cache } from "react";
export const getDashboard = cache(async ({ id }: { id: string }) => {
- return await prismaEdge.dashboard.findUnique({
+ return await prisma.dashboard.findUnique({
where: {
id,
},