I don't know if I should switch from Vite to Next.js
Unanswered
Asian black bear posted this in #help-forum
Asian black bearOP
I realised that react Vite comes without ssr from start and have a very poor SEO. For example if I google something my website would not be indexed because of the jsx (I know that some of it have to do with paid advertisements depending on what you search). I read that Next.js fixes these issues. Im also wondering if there is a simple and widley used npm package for Vite to fix this problem.
Sincerely
Sincerely
3 Replies
Next.js has SSR, which is better for SEO
I believe there might be some plugins for vite, which can add SSR
Hi! If you want to migrate to nextjs from an SPA app, you can follow:
https://nextjs.org/docs/app/building-your-application/upgrading/from-create-react-app
They are some difference because it was meant for CRA and not vite, but the general migration step is still right.
On the other hand, if you are using react-router, the team has released a remix plugin for vite that you might find interesting to migrate to SSR.
https://nextjs.org/docs/app/building-your-application/upgrading/from-create-react-app
They are some difference because it was meant for CRA and not vite, but the general migration step is still right.
On the other hand, if you are using react-router, the team has released a remix plugin for vite that you might find interesting to migrate to SSR.