feat(setup): add initial setup wizard for admin account and SMTP configuration
This commit is contained in:
15
shop/app/setup/page.tsx
Normal file
15
shop/app/setup/page.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import { isSetupNeeded } from '@/lib/actions/setup'
|
||||
import { redirect } from 'next/navigation'
|
||||
import { SetupWizard } from '@/components/SetupWizard'
|
||||
|
||||
export const dynamic = 'force-dynamic'
|
||||
|
||||
export default async function SetupPage() {
|
||||
const needed = await isSetupNeeded()
|
||||
|
||||
if (!needed) {
|
||||
redirect('/')
|
||||
}
|
||||
|
||||
return <SetupWizard />
|
||||
}
|
||||
Reference in New Issue
Block a user