File tree Expand file tree Collapse file tree 2 files changed +17
-10
lines changed
apps/web/app/app.dub.co/(auth) Expand file tree Collapse file tree 2 files changed +17
-10
lines changed Original file line number Diff line number Diff line change @@ -19,23 +19,25 @@ export default function LoginPage() {
1919 < div className = "mt-8" >
2020 < LoginForm />
2121 </ div >
22- < p className = "mt-6 text-center text-sm font-medium text-neutral-500" >
22+
23+ { /* Temp disable SignUp */ }
24+ { /* <p className="mt-6 text-center text-sm font-medium text-neutral-500">
2325 Don't have an account?
2426 <Link
2527 href="register"
2628 className="font-semibold text-neutral-700 transition-colors hover:text-neutral-900"
2729 >
2830 Sign up
2931 </Link>
30- </ p >
32+ </p> */ }
3133
32- < div className = "mt-12 w-full" >
34+ { /* <div className="mt-12 w-full">
3335 <AuthAlternativeBanner
3436 text="Looking for your Dub partner account?"
3537 cta="Log in at partners.dub.co"
3638 href="https://partners.dub.co/login"
3739 />
38- </ div >
40+ </div> */ }
3941 </ div >
4042 </ AuthLayout >
4143 ) ;
Original file line number Diff line number Diff line change 11import { AuthLayout } from "@/ui/layout/auth-layout" ;
22import { APP_DOMAIN , constructMetadata } from "@dub/utils" ;
3- import RegisterPageClient from "./page-client" ;
3+ import { redirect } from "next/navigation" ;
4+ // import RegisterPageClient from "./page-client";
45
56export const metadata = constructMetadata ( {
67 title : `Create your ${ process . env . NEXT_PUBLIC_APP_NAME } account` ,
78 canonicalUrl : `${ APP_DOMAIN } /register` ,
89} ) ;
910
11+ // export default function RegisterPage() {
12+ // return (
13+ // <AuthLayout showTerms="app">
14+ // <RegisterPageClient />
15+ // </AuthLayout>
16+ // );
17+ // }
18+ // Redirect all access to /register to /login
1019export default function RegisterPage ( ) {
11- return (
12- < AuthLayout showTerms = "app" >
13- < RegisterPageClient />
14- </ AuthLayout >
15- ) ;
20+ redirect ( "/login" ) ;
1621}
You can’t perform that action at this time.
0 commit comments