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.

fix: cloaked link page error handling and caching (#3620)

John Pham9b71653712f7
diff --git a/apps/web/app/cloaked/[url]/page.tsx b/apps/web/app/cloaked/[url]/page.tsx
index 6aedb5b73d..59446e5c16 100644
--- a/apps/web/app/cloaked/[url]/page.tsx
+++ b/apps/web/app/cloaked/[url]/page.tsx
@@ -5,9 +5,6 @@ import {
} from "@dub/utils";
import { getMetaTags } from "app/api/links/metatags/utils";
-export const runtime = "edge";
-export const fetchCache = "force-no-store";
-
export async function generateMetadata(props: {
params: Promise<{ url: string }>;
}) {
@@ -15,7 +12,6 @@ export async function generateMetadata(props: {
const url = decodeURIComponent(params.url); // key can potentially be encoded
const metatags = await getMetaTags(url);
-
const apexDomain = getApexDomain(url);
return constructMetadata({