RaddyTheBrand / 25.NodeJs-Express-EJS-MongoDB--Blog

https://express-mongodb-blog.vercel.app
MIT License
93 stars 50 forks source link

Vercel Hosting #2

Open MChiemelie opened 1 year ago

MChiemelie commented 1 year ago

I am finding it difficult to host this code on Vercel, to turn it to an actual website. I think the issue is from the template engine used which is EJS. This is the site I've hosted it and this is my guthub repo.

I dont know whether I should try another hosting platform like Render or I should convert the ,ejs files to .html or I should use Next.js for the frontend. But before I try these I would like to know if any one has a better idea of how I can host this easily on Vercel. Thank you!

RaddyTheBrand commented 1 year ago

You can't run an Express server on Varcel. Static websites and serverless functions only. Render should work, or as you mentioned on GitHub - NextJs. NextJs would be suitable for making a blog. Or Astro...