DEV Community

Cover image for SSG vs SSR in Next.js 15!

SSG vs SSR in Next.js 15!

Mahdi Jazini on February 27, 2025

Speed of Light on the Web or Hot Pizza? Your speed-loving, clean-code frontend dev here! 😎 Today, I'm gonna break down a super cool and...
Collapse
 
hadil profile image
Hadil Ben Abdallah

This is such a clear and fun breakdown of SSG vs. SSR in Next.js 15!
Love the analogy, it makes the concepts so easy to grasp.
Thanks for sharing! Great job!

Collapse
 
mahdijazini profile image
Mahdi Jazini

Thank you so much for the kind words! I’m glad you found the analogy helpful. Your feedback means a lot to me. Let me know if there’s anything else you’d like me to cover!

Collapse
 
ansellmaximilian profile image
Ansell Maximilian

Great summary man. I love NextJs

Collapse
 
mahdijazini profile image
Mahdi Jazini

I’m crazy about Next.js...! πŸ˜…

Collapse
 
essijunior profile image
NDANG ESSI Pierre Junior

Thanks for this article,

Please, write one where you explain in detail how to use SSG in Next.js

Collapse
 
mahdijazini profile image
Mahdi Jazini

Thanks a lot for reading and for your kind comment
I actually plan to write a full article soon on how to use SSG in Next.js
If there is anything specific you are curious about feel free to let me know and I will try to include it

Collapse
 
essijunior profile image
NDANG ESSI Pierre Junior
  • How to implement
  • The impact it has in performance
  • An example (may be a page speed performance insight (pagespeed.web.dev/)) that clearly shows how it leads to better performance
Collapse
 
ampadu_psamuel_ profile image
Ampadu Psamuel

I thank my mentor for introducing me to Next.js. This article was really helpful thank you. I enjoyed every bit of it

Collapse
 
mahdijazini profile image
Mahdi Jazini

Ampadu, so glad you found the article helpful! Thanks for taking the time to comment. If you’ve got any questions about Next.js or anything else, just hit me up!

Collapse
 
mrblackghostt profile image
MrBlackGhostt

LIke the explaniation easy to understand and to the point

Collapse
 
mahdijazini profile image
Mahdi Jazini

Thank you so much πŸ™

Collapse
 
pouyanjazini profile image
Pouyan Jazini

Thanks a lot! The topic was really interesting, and you explained it so clearly and concisely

Collapse
 
mahdijazini profile image
Mahdi Jazini

Thank you so much! I’m really glad you found it interesting and clear. Your feedback means a lot to me. Let me know if there’s anything else you’d like to see

Collapse
 
anemarie_dicola_9aaa699f0 profile image
Anemarie DiCola

Insightful information

Collapse
 
mahdijazini profile image
Mahdi Jazini

Thank you so much, I'm glad you found it helpful 😊

Collapse
 
cavalcanteleo profile image
Leonardo

Missing one important type of rendering: ISR, the combination of both

Collapse
 
mahdijazini profile image
Mahdi Jazini

Thank you Leonardo for pointing that out. πŸ™πŸ™
You’re absolutely right, ISR (Incremental Static Regeneration) is an important rendering method that deserves its own spotlight.
I’ll definitely write a dedicated article about it soon. Stay tuned.

Collapse
 
sebacure profile image
Sebahernandez

Excelllent !! , its very good !

Collapse
 
mahdijazini profile image
Mahdi Jazini

Thank you Sebahernandez πŸ™

Collapse
 
sadegh_shojayefard profile image
Sadegh shojaye fard

Such a clear and fun explanation! Love the way you compare SSG and SSR β€” makes Next.js 15 way easier to understand!

Collapse
 
mahdijazini profile image
Mahdi Jazini

Thank you so much for your kind feedback...! 😊
I’m glad you found the explanation of SSG and SSR clear and fun.
Comparing the two is definitely one of the best ways to better understand the features of Next.js 15...!

Collapse
 
Sloan, the sloth mascot
Comment deleted
Collapse
 
iury_2fdca03b354ff5c6d8cc profile image
Info Comment hidden by post author - thread only accessible via permalink
Iury

well it is too shallow

Some comments have been hidden by the post's author - find out more