feat(setup): add initial setup wizard for admin account and SMTP configuration
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user