2026-02-13 16:48:13 +01:00
|
|
|
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";
|
2025-11-04 08:48:46 +01:00
|
|
|
|
|
|
|
|
export const metadata: Metadata = {
|
2026-02-27 11:49:38 +01:00
|
|
|
title: "Register",
|
2025-11-04 08:48:46 +01:00
|
|
|
};
|
2024-11-03 21:12:40 +01:00
|
|
|
|
2025-01-01 22:28:21 +01:00
|
|
|
export default async function RoutePage(props: PageParams<{}>) {
|
2026-02-27 11:49:38 +01:00
|
|
|
if (
|
|
|
|
|
env.AUTH_SIGNUP_ENABLED !== "true" ||
|
|
|
|
|
env.AUTH_EMAIL_PASSWORD_ENABLED !== "true"
|
|
|
|
|
) {
|
|
|
|
|
redirect("/login");
|
|
|
|
|
}
|
2026-02-13 16:48:13 +01:00
|
|
|
|
2026-02-27 11:49:38 +01:00
|
|
|
return (
|
|
|
|
|
<div className="mx-auto grid w-full gap-6">
|
|
|
|
|
<RegisterForm />
|
|
|
|
|
</div>
|
|
|
|
|
);
|
2026-02-13 16:48:13 +01:00
|
|
|
}
|