The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
address remaining next-codemod-error comments
Steven Teydbfd0f7d57c9
diff --git a/apps/web/app/(ee)/admin.dub.co/(auth)/login/page.tsx b/apps/web/app/(ee)/admin.dub.co/(auth)/login/page.tsxindex 8149dfdcf8..71b4b96dd2 100644--- a/apps/web/app/(ee)/admin.dub.co/(auth)/login/page.tsx+++ b/apps/web/app/(ee)/admin.dub.co/(auth)/login/page.tsx@@ -1,2 +1 @@-export { /* @next-codemod-error `default` export is re-exported. Check if this component uses `params` or `searchParams`*/-default } from "../../../../app.dub.co/(auth)/login/page";+export { default } from "../../../../app.dub.co/(auth)/login/page";diff --git a/apps/web/app/(ee)/api/stripe/integration/webhook/test/route.ts b/apps/web/app/(ee)/api/stripe/integration/webhook/test/route.tsindex e648b790e0..7391eceb13 100644--- a/apps/web/app/(ee)/api/stripe/integration/webhook/test/route.ts+++ b/apps/web/app/(ee)/api/stripe/integration/webhook/test/route.ts@@ -13,5 +13,4 @@@see https://support.stripe.com/questions/connect-account-webhook-configurations*/-export { /* @next-codemod-error `POST` export is re-exported. Check if this component uses `params` or `searchParams`*/-POST } from "../route";+export { POST } from "../route";diff --git a/apps/web/app/(ee)/app.dub.co/layout.tsx b/apps/web/app/(ee)/app.dub.co/layout.tsxindex 4da5f26973..b044a48dde 100644--- a/apps/web/app/(ee)/app.dub.co/layout.tsx+++ b/apps/web/app/(ee)/app.dub.co/layout.tsx@@ -1,2 +1 @@-export { /* @next-codemod-error `default` export is re-exported. Check if this component uses `params` or `searchParams`*/-default } from "../../app.dub.co/layout";+export { default } from "../../app.dub.co/layout";diff --git a/apps/web/app/(ee)/partners.dub.co/(apply)/[programSlug]/[groupSlug]/apply/page.tsx b/apps/web/app/(ee)/partners.dub.co/(apply)/[programSlug]/[groupSlug]/apply/page.tsxindex a4dce71531..d639482a59 100644--- a/apps/web/app/(ee)/partners.dub.co/(apply)/[programSlug]/[groupSlug]/apply/page.tsx+++ b/apps/web/app/(ee)/partners.dub.co/(apply)/[programSlug]/[groupSlug]/apply/page.tsx@@ -1,2 +1 @@-export { /* @next-codemod-error `default` export is re-exported. Check if this component uses `params` or `searchParams`*/-default } from "../../apply/page";+export { default } from "../../apply/page";diff --git a/apps/web/app/(ee)/partners.dub.co/(apply)/[programSlug]/[groupSlug]/apply/success/page.tsx b/apps/web/app/(ee)/partners.dub.co/(apply)/[programSlug]/[groupSlug]/apply/success/page.tsxindex ccba346f1b..a3adc42b0c 100644--- a/apps/web/app/(ee)/partners.dub.co/(apply)/[programSlug]/[groupSlug]/apply/success/page.tsx+++ b/apps/web/app/(ee)/partners.dub.co/(apply)/[programSlug]/[groupSlug]/apply/success/page.tsx@@ -1,2 +1 @@-export { /* @next-codemod-error `default` export is re-exported. Check if this component uses `params` or `searchParams`*/-default } from "../../../apply/success/page";+export { default } from "../../../apply/success/page";diff --git a/apps/web/app/(ee)/partners.dub.co/(apply)/[programSlug]/[groupSlug]/page.tsx b/apps/web/app/(ee)/partners.dub.co/(apply)/[programSlug]/[groupSlug]/page.tsxindex 61df58d34a..bee8ff3025 100644--- a/apps/web/app/(ee)/partners.dub.co/(apply)/[programSlug]/[groupSlug]/page.tsx+++ b/apps/web/app/(ee)/partners.dub.co/(apply)/[programSlug]/[groupSlug]/page.tsx@@ -1,2 +1 @@-export { /* @next-codemod-error `default` export is re-exported. Check if this component uses `params` or `searchParams`*/-default } from "../page";+export { default } from "../page";diff --git a/apps/web/app/(ee)/partners.dub.co/(auth)/[programSlug]/login/page.tsx b/apps/web/app/(ee)/partners.dub.co/(auth)/[programSlug]/login/page.tsxindex 144562608c..4894b09959 100644--- a/apps/web/app/(ee)/partners.dub.co/(auth)/[programSlug]/login/page.tsx+++ b/apps/web/app/(ee)/partners.dub.co/(auth)/[programSlug]/login/page.tsx@@ -1,8 +1,6 @@export {- /* @next-codemod-error `generateMetadata` export is re-exported. Check if this component uses `params` or `searchParams`*/generateMetadata,generateStaticParams,} from "../../../(apply)/[programSlug]/layout";-export { /* @next-codemod-error `default` export is re-exported. Check if this component uses `params` or `searchParams`*/-default } from "../../login/page";+export { default } from "../../login/page";diff --git a/apps/web/app/(ee)/partners.dub.co/(auth)/[programSlug]/register/page.tsx b/apps/web/app/(ee)/partners.dub.co/(auth)/[programSlug]/register/page.tsxindex d9649e0aa8..4aac7dc609 100644--- a/apps/web/app/(ee)/partners.dub.co/(auth)/[programSlug]/register/page.tsx+++ b/apps/web/app/(ee)/partners.dub.co/(auth)/[programSlug]/register/page.tsx@@ -1,8 +1,6 @@export {- /* @next-codemod-error `generateMetadata` export is re-exported. Check if this component uses `params` or `searchParams`*/generateMetadata,generateStaticParams,} from "../../../(apply)/[programSlug]/layout";-export { /* @next-codemod-error `default` export is re-exported. Check if this component uses `params` or `searchParams`*/-default } from "../../register/page";+export { default } from "../../register/page";diff --git a/apps/web/app/(ee)/partners.dub.co/(auth)/auth/confirm-email-change/[token]/page.tsx b/apps/web/app/(ee)/partners.dub.co/(auth)/auth/confirm-email-change/[token]/page.tsxindex 5d5286a94e..a9188a96c4 100644--- a/apps/web/app/(ee)/partners.dub.co/(auth)/auth/confirm-email-change/[token]/page.tsx+++ b/apps/web/app/(ee)/partners.dub.co/(auth)/auth/confirm-email-change/[token]/page.tsx@@ -1,2 +1 @@-export { /* @next-codemod-error `default` export is re-exported. Check if this component uses `params` or `searchParams`*/-default } from "app/app.dub.co/(auth)/auth/confirm-email-change/[token]/page";+export { default } from "app/app.dub.co/(auth)/auth/confirm-email-change/[token]/page";diff --git a/apps/web/app/(ee)/partners.dub.co/(dashboard)/account/settings/page.tsx b/apps/web/app/(ee)/partners.dub.co/(dashboard)/account/settings/page.tsxindex b93bab9742..0a48ae3c0f 100644--- a/apps/web/app/(ee)/partners.dub.co/(dashboard)/account/settings/page.tsx+++ b/apps/web/app/(ee)/partners.dub.co/(dashboard)/account/settings/page.tsx@@ -1,2 +1 @@-export { /* @next-codemod-error `default` export is re-exported. Check if this component uses `params` or `searchParams`*/-default } from "app/app.dub.co/(dashboard)/account/settings/page";+export { default } from "app/app.dub.co/(dashboard)/account/settings/page";diff --git a/apps/web/app/(ee)/partners.dub.co/(dashboard)/account/settings/security/page.tsx b/apps/web/app/(ee)/partners.dub.co/(dashboard)/account/settings/security/page.tsxindex 8b8deca17d..d7a3137f23 100644--- a/apps/web/app/(ee)/partners.dub.co/(dashboard)/account/settings/security/page.tsx+++ b/apps/web/app/(ee)/partners.dub.co/(dashboard)/account/settings/security/page.tsx@@ -1,2 +1 @@-export { /* @next-codemod-error `default` export is re-exported. Check if this component uses `params` or `searchParams`*/-default } from "app/app.dub.co/(dashboard)/account/settings/security/page";+export { default } from "app/app.dub.co/(dashboard)/account/settings/security/page";diff --git a/apps/web/app/app.dub.co/(auth)/auth/confirm-email-change/[token]/page.tsx b/apps/web/app/app.dub.co/(auth)/auth/confirm-email-change/[token]/page.tsxindex 0843ca87ff..93d4b4cc7e 100644--- a/apps/web/app/app.dub.co/(auth)/auth/confirm-email-change/[token]/page.tsx+++ b/apps/web/app/app.dub.co/(auth)/auth/confirm-email-change/[token]/page.tsx@@ -20,7 +20,7 @@ interface PageProps {export default async function ConfirmEmailChangePage(props: PageProps) {return (- (<div className="flex flex-col items-center justify-center gap-6 text-center">+ <div className="flex flex-col items-center justify-center gap-6 text-center"><Suspensefallback={<EmptyState@@ -30,17 +30,15 @@ export default async function ConfirmEmailChangePage(props: PageProps) {/>}>- <VerifyEmailChange /* @next-codemod-error 'props' is used with spread syntax (...). Any asynchronous properties of 'props' must be awaited when accessed. */- {...props} />+ <VerifyEmailChange {...props} /></Suspense>- </div>)+ </div>);}-const VerifyEmailChange = async ({- params: { token },- searchParams,-}: PageProps) => {+const VerifyEmailChange = async ({ params, searchParams }: PageProps) => {+ const { token } = await params;+const tokenFound = await prisma.verificationToken.findUnique({where: {token: await hashToken(token, { secret: true }),@@ -58,7 +56,7 @@ const VerifyEmailChange = async ({}// Cancel the email change request (?cancel=true)- const { cancel } = searchParams;+ const { cancel } = await searchParams;if (cancel && cancel === "true") {await deleteRequest(tokenFound);diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/guides/[[...guide]]/page.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/guides/[[...guide]]/page.tsxindex fca41ed3c4..307ad90610 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/guides/[[...guide]]/page.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/guides/[[...guide]]/page.tsx@@ -1,2 +1 @@-export { /* @next-codemod-error `default` export is re-exported. Check if this component uses `params` or `searchParams`*/-default } from "../../../../../../(ee)/app.dub.co/(new-program)/[slug]/program/new/connect/[[...guide]]/page";+export { default } from "../../../../../../(ee)/app.dub.co/(new-program)/[slug]/program/new/connect/[[...guide]]/page";diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/layout.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/layout.tsxindex 7446aa6ccb..6ce9a1b697 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/layout.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/layout.tsx@@ -1,2 +1 @@-export { /* @next-codemod-error `default` export is re-exported. Check if this component uses `params` or `searchParams`*/-default } from "../../settings/(basic-layout)/layout";+export { default } from "../../settings/(basic-layout)/layout";diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/links/domains/default/page.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/links/domains/default/page.tsxindex bc1b803ec8..3bae35c2a3 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/links/domains/default/page.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/links/domains/default/page.tsx@@ -1,2 +1 @@-export { /* @next-codemod-error `default` export is re-exported. Check if this component uses `params` or `searchParams`*/-default } from "../../../settings/domains/default/page";+export { default } from "../../../settings/domains/default/page";diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/links/domains/page.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/links/domains/page.tsxindex d4567bec88..d57a0e2955 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/links/domains/page.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/links/domains/page.tsx@@ -1,2 +1 @@-export { /* @next-codemod-error `default` export is re-exported. Check if this component uses `params` or `searchParams`*/-default } from "../../settings/domains/page";+export { default } from "../../settings/domains/page";