Skip to main content
Create the API helper, blog listing, and blog detail pages for Next.js App Router.

Create the API helper

Create lib/thestacc.ts:

Create the blog listing page

Create app/blog/page.tsx:

Create the blog detail page

Create app/blog/[slug]/page.tsx:
For a fully static export, add output: 'export' to your next.config.js and use generateStaticParams as shown above. If you’d rather refresh content on a schedule without redeploying, see the Incremental Static Regeneration note under Build-time error handling.