Skip to content

Commit

Permalink
don't use edge
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-tey committed Feb 3, 2025
1 parent c3dccae commit 45bacbf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions apps/web/lib/fetchers/get-dashboard.ts
Original file line number Diff line number Diff line change
@@ -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,
},
Expand Down

0 comments on commit 45bacbf

Please sign in to comment.