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.

add redirects

Steven Tey54772d6de0ea
diff --git a/apps/web/app/app.dub.co/(onboarding)/[slug]/wrapped/page.tsx b/apps/web/app/app.dub.co/(onboarding)/[slug]/wrapped/page.tsx
new file mode 100644
index 0000000000..86fd9788c4
--- /dev/null
+++ b/apps/web/app/app.dub.co/(onboarding)/[slug]/wrapped/page.tsx
@@ -0,0 +1,9 @@
+import { redirect } from "next/navigation";
+
+export default function WrappedParentPage({
+ params,
+}: {
+ params: { slug: string };
+}) {
+ redirect(`/${params.slug}/wrapped/2024`);
+}
diff --git a/apps/web/lib/middleware/app.ts b/apps/web/lib/middleware/app.ts
index 9e5a0e5206..93a4e73260 100644
--- a/apps/web/lib/middleware/app.ts
+++ b/apps/web/lib/middleware/app.ts
@@ -88,6 +88,7 @@ export default async function AppMiddleware(req: NextRequest) {
"/programs",
"/settings",
"/upgrade",
+ "/wrapped",
].includes(path) ||
path.startsWith("/settings/") ||
isTopLevelSettingsRedirect(path)