Blog

Next.js Creating forms with Server Actions
For most of the last decade, building a form in a React app meant the same ritual: wire up useState for every field, write an onSubmit handler th
Dive Deeper
Next.js generateImageMetadata
Most of the time, a favicon or an Open Graph image in a Next.js app is a single static file sitting next to a route: one icon.png, one `opengraph-i
Dive Deeper
Next.js generateMetadata function
Every page you ship eventually gets shared somewhere — pasted into Slack, tweeted, indexed by Google, unfurled in an iMessage thread. What determines
Dive Deeper
Next.js generateSitemaps
A single sitemap.xml file works fine right up until it doesn't. The sitemap protocol caps every file at 50,000 URLs (and 50MB uncompressed), and lo
Dive Deeper
Next.js generateStaticParams
Dynamic route segments like app/blog/[slug]/page.tsx are, by default, rendered on demand: the first time someone requests /blog/hello-world, Next
Dive Deeper
Next.js generateViewport
If you've ever squinted at a site on your phone because the text rendered tiny and zoomed-out, you've felt the absence of a proper viewport meta tag.
Dive Deeper