feat(setup): add initial setup wizard for admin account and SMTP configuration

This commit is contained in:
DanielS
2026-07-03 09:55:24 +02:00
parent f5f577ea73
commit 6dc1b1c00c
6 changed files with 560 additions and 2 deletions

View File

@@ -1,9 +1,15 @@
import { createClient } from '@/lib/supabase/server'
import { HomeClient } from '@/components/HomeClient'
import { isSetupNeeded } from '@/lib/actions/setup'
import { redirect } from 'next/navigation'
export const dynamic = "force-dynamic"
export default async function Home() {
if (await isSetupNeeded()) {
redirect('/setup')
}
let user = null
try {
const supabase = await createClient()