Next.js

Full-stack React framework

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

Search Forms Driven by URL Search Params

Drive a search form from URL search params: submit a GET form, read the searchParams prop on the server, and render shareable results.

SearchnextjsForms
Aug 24, 2026· 6 min read

Route Handlers in Next.js: `route.js` Explained

How route.js files turn folders in the App Router into API endpoints, which HTTP methods they support, and how the file path becomes the URL.

API RoutesnextjsRoute Handlers
Aug 24, 2026· 7 min read

How to Read and Set Cookies in Next.js

Read cookies anywhere on the server with the async cookies function, and set or delete them from a Server Action or a Route Handler.

nextjsCookiesRoute Handlers
Aug 24, 2026· 7 min read

Dynamic Route Handlers and Route Params

How to build an API endpoint with a dynamic segment, read the route params promise, and type the context object in the App Router.

nextjsDynamic RoutesRoute Handlers
Aug 24, 2026· 8 min read

Handling CORS in Next.js Route Handlers

Set cross-origin headers on a Route Handler, answer preflight requests with an OPTIONS export, and choose between per-route, proxy, and config-wide approaches.

Route Handlersnextjscors
Aug 24, 2026· 8 min read

Receiving Webhooks in Next.js Safely

Build a webhook endpoint as a POST Route Handler, verify the signature against the unchanged body, answer quickly, and handle repeat deliveries.

nextjsRoute Handlerswebhooks
Aug 24, 2026· 8 min read

Rate Limiting a Next.js API Endpoint

Identify the caller, count requests in a window, and return a 429 with Retry-After, first in memory and then with a shared store that survives multiple instances.

Rate LimitingRoute Handlersnextjs