mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
25 lines
607 B
TypeScript
25 lines
607 B
TypeScript
import { PageParams } from "@/types/next";
|
|
import { RegisterForm } from "@/components/wrappers/auth/register/register-form/register-form";
|
|
import { Metadata } from "next";
|
|
import { redirect } from "next/navigation";
|
|
import { env } from "@/env.mjs";
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Register",
|
|
};
|
|
|
|
export default async function RoutePage(props: PageParams<{}>) {
|
|
if (
|
|
env.AUTH_SIGNUP_ENABLED !== "true" ||
|
|
env.AUTH_EMAIL_PASSWORD_ENABLED !== "true"
|
|
) {
|
|
redirect("/login");
|
|
}
|
|
|
|
return (
|
|
<div className="mx-auto grid w-full gap-6">
|
|
<RegisterForm />
|
|
</div>
|
|
);
|
|
}
|