The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
disable isr for /[domain]
Steven Tey9721750416af
diff --git a/apps/web/app/[domain]/page.tsx b/apps/web/app/[domain]/page.tsxindex 3883687323..caf061f184 100644--- a/apps/web/app/[domain]/page.tsx+++ b/apps/web/app/[domain]/page.tsx@@ -1,8 +1,9 @@-import { prisma } from "@/lib/prisma";import { Background } from "@dub/ui";import { constructMetadata } from "@dub/utils";import PlaceholderContent from "./placeholder";+export const revalidate = 0;+export async function generateMetadata({params,}: {@@ -21,33 +22,6 @@ export async function generateMetadata({});}-export async function generateStaticParams() {- if (process.env.VERCEL_ENV != "production") {- return [];- }-- const domains = await prisma.domain.findMany({- where: {- verified: true,- NOT: {- slug: "dub.sh",- },- links: {- some: {- url: "",- },- },- },- select: {- slug: true,- },- });-- return domains.map(({ slug: domain }) => ({- domain,- }));-}-export default function CustomDomainPage() {return (<>