3 ms·
Well I suppose that's subjective, I probably put my bias in there but I would say: For mostly static or content driven sites, there are really nice static site
by __jonas 3y ago
Well I suppose that's subjective, I probably put my bias in there but I would say:
For mostly static or content driven sites, there are really nice static site generators now. I find Astro[1] really pleasant to use, offering the convenience of SPA framework tooling, while allowing me to build sites that run without the need for any client-side JavaScript but the option to into client-side JS as needed.
But also NextJS has a similar static export function, and of course there are many other great SSGs outside the JavaScript world like Hugo.
For dynamic web applications like the example from my comment I would just do server side rendering using your language and framework of choice, Phoenix, Rails, Next, Django, whatever.
In both cases the issue with 404 routes is avoided.
[1] https://astro.build/ https://astro.build/