#428
docs(next): fix the quick start to use getPageData
- The Next quick start destructures
PagefromcreateNextApp, which only returnsgetPageData,generateMetadataandgenerateStaticParams, so following it fails to build. - The docs now show a
page.tsxthat callsgetPageDataand rendersPageRenderer, and a client layout withNextAppProviderthat no longer wraps<html>and<body>. - Fixes #380. Builds on #402.
Co-authored by @Jassi2004, based on #402.
Before
Building an app from the quick start fails with "Property 'Page' does not exist", and the dev server returns a 500.
https://github.com/user-attachments/assets/e660baeb-6610-44f3-85e3-95efb22c517c
After
The same steps from the fixed docs build, and the page renders the spec.
https://github.com/user-attachments/assets/1c69080f-6afa-4e69-baea-324b6ddd468a
Activity
4ctateapproved changes20d ago
The latest updates on your projects. Learn more about Vercel for GitHub.