Converting Vite app to NextJS (SPA/ SSR)
Unanswered
Black carp posted this in #help-forum
Black carpOP
I am completely done with my site created in Vite but heard about SEO problems due to the lack of SSR. My Vite app utilizes React Router and React Helmet but I read it's not as efficient as setting up SSR. What can I do to ensure a smooth transition converting my project to NextJS? I am new to all this and would appreciate all the help!
9 Replies
@!=tgt https://nextjs.org/docs/app/building-your-application/upgrading/from-vite
Black carpOP
I’ve followed that guide and it led me to some error caused by the nextjs config file
Black carpOP
if specifying the build folder to /dist it throws an error saying it’s missing files
One moment
I got frustrated and deleted the repo 3 times
Setting
distDir: './dist', in next.config.mjs throws an error Cannot find module /.next/middleware-manifest.jsonBlack carpOP
I've given up and now just following the structure of how it is set up from npx create-next-app