Deploying vite frontend and express backed

I am trying deploy a website with vite front end and express backend. I am not able to figure out what should go in my vercel.config. Existing examples are just for express backend deployment, not both front end and backend. I have my index.js(express server) stored in backend directly of the root, and frontend (index.html) is at root.

I am using latest node and vite.

If you’re having trouble deploying an Express app, this guide can help.

You can also ask v0 for suggestions tailored to your own project setup.

Hi @omshewale30, welcome to the Vercel Community!

We’ve created a post about using Express with different options, including Vite:

I hope you find this useful.