rsnext/test/e2e/app-dir/dynamic-in-generate-params
Jiachi Liu 053db6af8e
Remove the erroring on force-dynamic in static generation for app route (#63526)
### What
* Remove the erroring of force-dynamic is not able to use during static
generation
* Export the route segments properly in sitemap conventions

### Why

We discovered this error is showing up when users are using
force-dynamic with generating multi sitemaps.

When you have a dynamic `route /[id]/route.js` , and you have
generateSitemaps defined which is actually using `generateSitemaps`
under the hood , then you set the route to dynamic with `export dynamic
= 'force-dynamic'`.

We should keep the route still as dynamic. `generateStaticParams` is
only for generating the paths, which is static in build time. And the
`force-dynamic` is going to be applied to each generated path.

Closes NEXT-2881
2024-03-22 00:15:20 +01:00
..
app Remove the erroring on force-dynamic in static generation for app route (#63526) 2024-03-22 00:15:20 +01:00
index.test.ts Remove the erroring on force-dynamic in static generation for app route (#63526) 2024-03-22 00:15:20 +01:00