- Connect homepage, blog, services, header, footer to Payload CMS via local API - Add HomePage global with 7 editorial sections (hero, painPoints, solution, whyAxil, audience, process, finalCta) - Add ServerHeader/ServerFooter async wrappers with unstable_cache + tag-based ISR revalidation - Rewrite blog/[slug] and services/[slug] pages to fetch from CMS with fallbacks - Add seed script (src/lib/seed.ts) to populate all collections and globals from hardcoded defaults - Restructure app into (site)/ route group to fix Payload admin hydration conflicts - Make root layout a passthrough; (site)/layout.tsx owns html/body/fonts - Restrict user creation/update/delete to admin role only - Fix migration imports: type MigrateUpArgs/Down from @payloadcms/db-postgres - Wrap revalidateTag dynamic imports in try/catch for seed/CLI compatibility - Skip migrations in dev mode (Payload handles schema push automatically) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
8 lines
352 B
TypeScript
8 lines
352 B
TypeScript
import type { ReactNode } from 'react';
|
|
|
|
// Root layout is intentionally minimal — html/body are provided by child layouts:
|
|
// - (site)/layout.tsx for website pages
|
|
// - (payload)/admin/[[...segments]]/layout.tsx for Payload admin
|
|
export default function RootLayout({ children }: { children: ReactNode }) {
|
|
return children as React.ReactElement;
|
|
}
|