next.js
69e2b9df - [test] Current behavior for request APIs in `generateStaticParams` (#91188)

Commit
13 days ago
[test] Current behavior for request APIs in `generateStaticParams` (#91188) Adds a dedicated test suite that asserts on the errors thrown when `cookies`, `headers`, `connection`, `draftMode`, and `next/root-params` are called inside `generateStaticParams`. Currently, these all fail because `generateStaticParams` runs without a work unit store. Each route is built individually using `--debug-build-paths` so we can capture and assert on the error for each API independently.
Author
Parents
Loading