rsnext/docs
Karl Keefer 5be04cf8fd
Incremental Static Regeneration - docs update explaining surprising behavior (#66151)
The _requirement_ to export a `generateStaticParams` to get static cache
behavior _after_ build time was _really_ surprising behavior for me, and
I think others:
* https://github.com/vercel/next.js/issues/62195#issuecomment-1952091312
*
https://github.com/vercel/next.js/discussions/57961#discussioncomment-8491488

Potentially this is a bug, and not something that should be fixed with
documentation?
I don't understand next.js caching enough to make that determination, so
instead I'm proposing these changes to docs which might be encountered
by folks who are surprised by this cache behavior.

One point in favor of this being a bug: The CLI reports that a route is
`SSG` enabled in the build output, but doesn't actually cache post-build
page renders if this export is missing.

@awinogrodzki made a demo repo showing this behavior, as described
[here](https://github.com/vercel/next.js/discussions/57961#discussioncomment-7468144).

---------

Co-authored-by: Delba de Oliveira <delbabrown@gmail.com>
Co-authored-by: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
Co-authored-by: samcx <sam@vercel.com>
2024-06-10 15:48:54 +00:00
..
01-getting-started Clarify create-next-app question wording (#66157) 2024-05-24 16:11:30 -07:00
02-app Incremental Static Regeneration - docs update explaining surprising behavior (#66151) 2024-06-10 15:48:54 +00:00
03-pages fix(turbopack): remove tailwindcss from default external packages (#66706) 2024-06-10 16:23:03 +02:00
04-architecture fix(docs): update styled components option (#65718) 2024-05-20 19:35:20 +00:00
05-community docs(community): remove Grammarly extension recommendation (#66195) 2024-05-24 16:20:14 -05:00
index.mdx Correct spelling in installation guide reference (#66484) 2024-06-03 18:45:40 +00:00