Files
next.js/test/production/app-dir/generate-static-params-errors/next.config.ts
Hendrik LiebauandGitHub 69e2b9df26 [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.
2026-03-13 22:37:40 +01:00

8 lines
140 B
TypeScript

import type { NextConfig } from 'next'
const nextConfig: NextConfig = {
experimental: { rootParams: true },
}
export default nextConfig