- Remove BMAD framework, IDE configs, dev screenshots, test files, internal docs, and backup files - Rename keep-notes/ to memento-note/ - Update all references from keep-notes to memento-note - Add Apache 2.0 license with Commons Clause (non-commercial restriction) - Add clean .gitignore and .env.docker.example
21 lines
643 B
TypeScript
21 lines
643 B
TypeScript
import { RegisterForm } from '@/components/register-form';
|
|
import { getSystemConfig } from '@/lib/config';
|
|
import { redirect } from 'next/navigation';
|
|
|
|
export default async function RegisterPage() {
|
|
const config = await getSystemConfig();
|
|
const allowRegister = config.ALLOW_REGISTRATION !== 'false' && process.env.ALLOW_REGISTRATION !== 'false';
|
|
|
|
if (!allowRegister) {
|
|
redirect('/login');
|
|
}
|
|
|
|
return (
|
|
<main className="flex items-center justify-center md:h-screen">
|
|
<div className="relative mx-auto flex w-full max-w-[400px] flex-col space-y-2.5 p-4 md:-mt-32">
|
|
<RegisterForm />
|
|
</div>
|
|
</main>
|
|
);
|
|
}
|