The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix well-known route for unavailable domains
Steven Tey956c6d793b93
diff --git a/apps/web/app/wellknown/[domain]/[file]/route.ts b/apps/web/app/wellknown/[domain]/[file]/route.tsindex 4136555f88..9b69769f1a 100644--- a/apps/web/app/wellknown/[domain]/[file]/route.ts+++ b/apps/web/app/wellknown/[domain]/[file]/route.ts@@ -19,7 +19,7 @@ export async function GET(}const { appleAppSiteAssociation, assetLinks } =- await prismaEdge.domain.findUniqueOrThrow({+ (await prismaEdge.domain.findUnique({where: {slug: domain,},@@ -27,7 +27,10 @@ export async function GET(appleAppSiteAssociation: true,assetLinks: true,},- });+ })) || {+ appleAppSiteAssociation: null,+ assetLinks: null,+ };let response: WellKnownConfig[SupportedWellKnownFiles];switch (file) {