Understanding SSG and when to use it (Next14 + app router) #76054
Answered
by
icyJoseph
stephen-ply
asked this question in
Help
-
SummaryHelp me understand when I shouldn't use SSG Additional informationContext: we are using Next.js 14 + App Router export default function SomePage() {
// do stuff with cookies() API. page data depends on logged in user
}
export const generateStaticParams() {
// generate params to pre-render page at build time
} Essentially, we are doing SSG, but I am skeptical of any benefit it brings us. Am I correct to think that SSG here doesn't really do anything since Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
icyJoseph
Feb 14, 2025
Replies: 1 comment
-
Indeed, I think, even |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
stephen-ply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Indeed, I think, even
dynamicParams
set to false, doesn't do anything whencookies
or any of the so called, dynamic opt-ins is at play.