News for hackers. Stuff that matters.
Re:New React docs pretend SPAs don't exist anymore by dzogchen on Friday March 17, 2023 @07:51PM (#35204477)
If you want the control and low overhead of Vite but don't want to implement everything a framework gives you, vite-plugin-ssr might be interesting for you.

It is basically Next.js as a do-one-thing-well Vite plugin (its slogan).

https://vite-plugin-ssr.com/

Re:New React docs pretend SPAs don't exist anymore by dmix on Friday March 17, 2023 @08:01PM (#35204535)
That looks perfect for what I was looking for on a side project. I hope they don’t end up bloating up over the years via endless user demands and turn into another Next.js. More like a Sinatra vs Rails.
Re:New React docs pretend SPAs don't exist anymore by floydnoel on Sunday March 19, 2023 @09:21AM (#35218658)
Thanks for sharing this! Comments like yours are why I love HN comments. Despite all the arguments and negativity, I managed to find a useful comment which is directly applicable to my current needs!

I have been trying out Vite on my latest small project and was wondering if I should enable pre-rendering or perhaps alter the build process. I have markdown files which form some pages, currently they are imported and this causes the *.md files to be fetched when navigating to that page. It's mostly fine but it wouldn't be the best for blog SEO. So thanks again for giving me another option to look at, it may be just the right thing!