DEV Community

loading...

Discussion on: What Is the Jamstack in 2021?

Collapse
dbroadhurst profile image
David Broadhurst

Every year I take a shot at building a static site and run into issues that don't exist when I make a SPA. I'm sure static sites are awesome when building a site but most of what I build is a webapp that requires a lot of dynamic info.

Collapse
mulfordmatthew profile image
Matthew Mulford

I would advise looking into Next.js. Static when you need it, get data from the server when you don't. I personally have been using a static/server rendered hybrid approach to moderate success

Collapse
remotesynth profile image
Brian Rinaldi Author

I don't know the specifics of your use cases obviously, but I find that it's often a matter of changing how you approach a specific technical requirement from a server-side dynamic solution to a client-side dynamic solution. What I mean by this is that rather than solving the problem with a new page request, we might be able to solve it with a client-side request to an API or serverless function (there is always a server involved somehow 😉) and then some JavaScript to change the client state/update the UI. That's all Next.js is doing with SSR after all and why it can be enabled on services like Netlify even though they are "static."