The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix links, remove runtime nodejs
Steven Tey100221b0984b
diff --git a/apps/web/app/(ee)/partners.dub.co/(auth)/auth/reset-password/[token]/page.tsx b/apps/web/app/(ee)/partners.dub.co/(auth)/auth/reset-password/[token]/page.tsxindex 8c48cb976c..ae8d828463 100644--- a/apps/web/app/(ee)/partners.dub.co/(auth)/auth/reset-password/[token]/page.tsx+++ b/apps/web/app/(ee)/partners.dub.co/(auth)/auth/reset-password/[token]/page.tsx@@ -3,9 +3,6 @@ import { AuthLayout } from "@/ui/layout/auth-layout";import EmptyState from "@/ui/shared/empty-state";import { prisma } from "@dub/prisma";import { InputPassword } from "@dub/ui";--export const runtime = "nodejs";-interface Props {params: {token: string;diff --git a/apps/web/app/(ee)/partners.dub.co/(auth)/login/page.tsx b/apps/web/app/(ee)/partners.dub.co/(auth)/login/page.tsxindex 2383857afb..0ded096aa4 100644--- a/apps/web/app/(ee)/partners.dub.co/(auth)/login/page.tsx+++ b/apps/web/app/(ee)/partners.dub.co/(auth)/login/page.tsx@@ -14,7 +14,7 @@ export default async function LoginPage({}) {if (programSlug === "framer") {return (- <AuthLayout showTerms>+ <AuthLayout showTerms="partners"><div className="mx-auto my-10 flex w-full max-w-sm flex-col gap-8"><div className="animate-slide-up-fade relative flex w-auto flex-col items-center [--offset:10px] [animation-duration:1.3s] [animation-fill-mode:both]"><img@@ -56,7 +56,7 @@ export default async function LoginPage({return (<div className="relative">{program && <PartnerBanner program={program} />}- <AuthLayout showTerms>+ <AuthLayout showTerms="partners"><div className="w-full max-w-sm"><h1 className="text-center text-xl font-semibold">Log in to your Dub Partner accountdiff --git a/apps/web/app/(ee)/partners.dub.co/(auth)/register/page-client.tsx b/apps/web/app/(ee)/partners.dub.co/(auth)/register/page-client.tsxindex dbb2bb8b61..6f303fae81 100644--- a/apps/web/app/(ee)/partners.dub.co/(auth)/register/page-client.tsx+++ b/apps/web/app/(ee)/partners.dub.co/(auth)/register/page-client.tsx@@ -35,7 +35,7 @@ function SignUp({ program }: { program?: PartialProgram }) {return (<div className="relative">{program && <PartnerBanner program={program} />}- <AuthLayout showTerms>+ <AuthLayout showTerms="partners"><div className="w-full max-w-sm"><h1 className="text-center text-xl font-semibold">Create your Dub Partner accountdiff --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 cb8ddc4cab..c6b276a306 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@@ -13,8 +13,6 @@ import { redirect } from "next/navigation";import { Suspense } from "react";import ConfirmEmailChangePageClient from "./page-client";-export const runtime = "nodejs";-interface PageProps {params: { token: string };searchParams: { cancel?: string };diff --git a/apps/web/app/app.dub.co/(auth)/auth/reset-password/[token]/page.tsx b/apps/web/app/app.dub.co/(auth)/auth/reset-password/[token]/page.tsxindex a6be9b8100..864357b7c5 100644--- a/apps/web/app/app.dub.co/(auth)/auth/reset-password/[token]/page.tsx+++ b/apps/web/app/app.dub.co/(auth)/auth/reset-password/[token]/page.tsx@@ -4,8 +4,6 @@ import EmptyState from "@/ui/shared/empty-state";import { prisma } from "@dub/prisma";import { InputPassword } from "@dub/ui";-export const runtime = "nodejs";-interface Props {params: {token: string;diff --git a/apps/web/app/app.dub.co/(auth)/invites/[code]/page.tsx b/apps/web/app/app.dub.co/(auth)/invites/[code]/page.tsxindex 5cd5fe3842..fdd272bac6 100644--- a/apps/web/app/app.dub.co/(auth)/invites/[code]/page.tsx+++ b/apps/web/app/app.dub.co/(auth)/invites/[code]/page.tsx@@ -7,8 +7,6 @@ import { APP_NAME } from "@dub/utils";import { redirect } from "next/navigation";import { Suspense } from "react";-export const runtime = "nodejs";-export default function InvitesPage({params,}: {diff --git a/apps/web/app/app.dub.co/(auth)/login/page.tsx b/apps/web/app/app.dub.co/(auth)/login/page.tsxindex 8b8c92ae3a..bec070e0c8 100644--- a/apps/web/app/app.dub.co/(auth)/login/page.tsx+++ b/apps/web/app/app.dub.co/(auth)/login/page.tsx@@ -11,7 +11,7 @@ export const metadata = constructMetadata({export default function LoginPage() {return (- <AuthLayout showTerms>+ <AuthLayout showTerms="app"><div className="w-full max-w-sm"><h3 className="text-center text-xl font-semibold">Log in to your Dub accountdiff --git a/apps/web/app/app.dub.co/(auth)/oauth/authorize/page.tsx b/apps/web/app/app.dub.co/(auth)/oauth/authorize/page.tsxindex 976337af7b..4e8a8b16c3 100644--- a/apps/web/app/app.dub.co/(auth)/oauth/authorize/page.tsx+++ b/apps/web/app/app.dub.co/(auth)/oauth/authorize/page.tsx@@ -12,8 +12,6 @@ import { Suspense } from "react";import { AuthorizeForm } from "./authorize-form";import { ScopesRequested } from "./scopes-requested";-export const runtime = "nodejs";-export const metadata = constructMetadata({title: "Authorize API access | Dub",noIndex: true,diff --git a/apps/web/app/app.dub.co/(auth)/register/page.tsx b/apps/web/app/app.dub.co/(auth)/register/page.tsxindex 6d69d8b2eb..4e276cc3ec 100644--- a/apps/web/app/app.dub.co/(auth)/register/page.tsx+++ b/apps/web/app/app.dub.co/(auth)/register/page.tsx@@ -9,7 +9,7 @@ export const metadata = constructMetadata({export default function RegisterPage() {return (- <AuthLayout showTerms>+ <AuthLayout showTerms="app"><RegisterPageClient /></AuthLayout>);diff --git a/apps/web/ui/layout/auth-layout.tsx b/apps/web/ui/layout/auth-layout.tsxindex f087f32bb0..b25493241b 100644--- a/apps/web/ui/layout/auth-layout.tsx+++ b/apps/web/ui/layout/auth-layout.tsx@@ -2,9 +2,9 @@ import { ClientOnly } from "@dub/ui";import { PropsWithChildren, Suspense } from "react";export const AuthLayout = ({- showTerms = false,+ showTerms,children,-}: PropsWithChildren<{ showTerms?: boolean }>) => {+}: PropsWithChildren<{ showTerms?: "app" | "partners" }>) => {return (<div className="flex min-h-screen w-full flex-col items-center justify-between">{/* Empty div to help center main content */}@@ -21,11 +21,11 @@ export const AuthLayout = ({<p className="px-20 py-8 text-center text-xs font-medium text-neutral-500 md:px-0">By continuing, you agree to Dub’s{" "}<a- href="https://dub.co/legal/terms"+ href={`https://dub.co/legal/${showTerms === "app" ? "terms" : "partners"}`}target="_blank"className="font-semibold text-neutral-600 hover:text-neutral-800">- Terms of Service+ {showTerms === "app" ? "Terms of Service" : "Partner Terms"}</a>{" "}and{" "}<a