E.g. a traditional SPA (client only) can handle dynamic routes without extra intervention of a higher level router.
Otherwise yes SSG can be useful :)
E.g. a traditional SPA (client only) can handle dynamic routes without extra intervention of a higher level router.
Otherwise yes SSG can be useful :)
If you have rewrites it is not anywhere that purely takes HTML/CSS/JS.
If I have `pages/blog/index.tsx` in my NextJS app this will get output to `blog.html` and can be deployed like a static site without further top-level routing.
You're referring to static routes.
This is not the same as any non-React or non-Next SPA either way. A lot of them have SPA support i.e. route anything to index if there is no match. They may not have random rewrite support though.
And that IMO is kind of where the problem is - what level of abstraction should be added? Lots of beginners had problems because they were bombarded with the many confusing things to install to make something, and more often than not routing was one of them. It's just that Next.JS' is opinionated, but I'd argue so is everything else.