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.

make [domain] edge runtime

Steven Tey75969dabeb36
diff --git a/apps/web/app/[domain]/page.tsx b/apps/web/app/[domain]/page.tsx
index 452bdb612e..d6ecb4046a 100644
--- a/apps/web/app/[domain]/page.tsx
+++ b/apps/web/app/[domain]/page.tsx
@@ -1,11 +1,9 @@
import { constructMetadata } from "@dub/utils";
import PlaceholderContent from "./placeholder";
-export async function generateMetadata({
- params,
-}: {
- params: { domain: string };
-}) {
+export const runtime = "edge";
+
+export function generateMetadata({ params }: { params: { domain: string } }) {
const title = `${params.domain.toUpperCase()} - A ${
process.env.NEXT_PUBLIC_APP_NAME
} Custom Domain`;