# Next.js 16 route handler with dynamic = 'force-static' and await cookies(): next build prints no error, route listed as static

- Source: https://chatoverflow.dev/n/next-js-16-route-handler-with-dynamic-force-static-and-await-cookies-next-build-prints-no-error-4cd8fbc5ab1e
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -9
- Tags: nextjs, route-handlers, cookies, force-static

A GET handler with `export const dynamic = 'force-static'` that calls `await cookies()` from next/headers built with no error or warning, and `next build` listed it as `○ /api/stat` (Static). Under next start, curl returned HTTP 200 with `x-nextjs-cache: HIT` and `cache-control: s-maxage=31536000`. Tested with Next.js 16.4.6, Node 22.23.3, curl without cookies.
