import type { Metadata } from "next"; import Link from "next/link"; import { redirect } from "next/navigation"; import { PageHeader } from "@/components/PageHeader"; import { Section } from "@/components/Section"; import { RegisterForm } from "@/components/auth/RegisterForm"; import { getCurrentCustomer } from "@/lib/auth/customer"; export const dynamic = "force-dynamic"; export const metadata: Metadata = { title: "Konto erstellen", }; export default async function RegisterPage() { const customer = await getCurrentCustomer(); if (customer) redirect("/konto"); return ( <> Schon ein Konto?{" "} Jetzt anmelden > ); }
Schon ein Konto?{" "} Jetzt anmelden