DEV Community

Discussion on: Static Site generation impact on API Servers

Collapse
 
bennyychan profile image
Benny Chan

However, with SSG, there is a great limitation on the site. With server-side functionality, there is no member function, no dynamic content based on the user.

So what type of websites can be made under SSG? Documentation sites, simple blogs, personal portfolio, simple company websites, websites with heavy content but don't require personalization. Can I make a SaaS web app using SSG? Definitely not

Collapse
 
matfrana profile image
Matteo Frana

Really in a static site you may have a complete React app which calls apis. It's just that a part of the UI is prerendered on the server so that it has a better TTFB and SEO, but a static site may host a dynamic application which launch queries on the client: it's static because it is pre-rendendered on the server, but you still have dynamic javascript on the client.
For example, with React Bricks CMS (reactbricks.com) the starter projects have a static generated (Gatsby or Next.js) frontend, but a /admin folder with a full React application to edit content.