Next.js

Full-stack React framework

167 tutorials
12 of 167 tutorials
Aug 24, 2026· 5 min read

Reading `FormData` in a Server Action

How to read submitted fields from the FormData argument of a Server Action: get, getAll, Object.fromEntries, and the $ACTION_ caveat.

nextjsServer ActionsForms
Aug 24, 2026· 6 min read

Multi-Step Forms in the App Router

How to split a long form into steps in the Next.js App Router: track the step, keep fields mounted with the hidden attribute, and submit once.

nextjsFormsReact
Aug 24, 2026· 9 min read

Redirecting Based on Cookies, Headers, or Geolocation

How to send visitors to different routes based on a cookie, a request header, or the location your host reports, using the proxy file and config conditions in the Next.js App Router.

RedirectsnextjsProxy
Aug 24, 2026· 8 min read

Setting Request and Response Headers in Proxy

The proxy file can add headers in two directions: forward to your server code, or back to the browser. They use different APIs, and mixing them up leaks data or breaks responses.

headersnextjsProxy
Aug 24, 2026· 9 min read

Debugging Redirect Loops and Proxy That Never Runs

Two failures that look like nothing is happening. Here is the single request that identifies a redirect loop, and the checklist for a proxy file that silently never executes.

nextjsProxyDebugging