bluwy / create-vite-extra

Extra Vite templates
MIT License
367 stars 55 forks source link

How to Deploy React SSR with TS on Vercel? #56

Open rutvik106 opened 1 month ago

rutvik106 commented 1 month ago

I have cloned this project https://github.com/bluwy/create-vite-extra/tree/master/template-ssr-react-ts and now trying to deploy it on Vercel. But it is not working on Vercel.

What needs to be done or configured to make this SSR project run on Vercel? Or should I shift the project from Vercel to somewhere else?

Thank you.

bluwy commented 1 month ago

The SSR setup is a normal NodeJS server (using express) that you can start up with node server.js after you've run vite build to build the files. Perhaps https://vercel.com/guides/using-express-with-vercel helps? Any deployment platform that can run your site with a NodeJS server will do.