DEV Community

Discussion on: Server Side Rendering vs Static Site Generation vs Incremental Static Regeneration

Collapse
 
mohamed_khaled_155a5ca554 profile image
Mohamed Khaled

i have a confusing about SSG
do we can make api calls on run time or not because you said "Since you call the APIs only at build time"
and them at the end in "How to cope with cons:" section you said
"and frequently changing data (stock quantity) you may do an API call on component load to fetch an updated version of just the frequently changing data."

and even authentication on SSG websites it needs api calls to server to sign up or sign in or fetching user data

so please clear it to me.