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.
system
(system)
March 4, 2025, 1:18am
2
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.
anshumanb
(Anshuman Bhardwaj)
March 4, 2025, 8:43am
3
Hi @omshewale30 , welcome to the Vercel Community!
We’ve created a post about using Express with different options, including Vite:
Getting started
Express.js is one of the most popular framework choices for building a backend using Node.js. If you are starting a new Express project and want to deploy it to Vercel, we recommend you to follow the Using Express.js with Vercel guide.
Common patterns
If you are coming from an existing project, we’ve put together this example repository to showcase the common development patterns for Express apps.
We recommend hosting your frontend application on a separ…
I hope you find this useful.
system
(system)
Closed
June 2, 2025, 8:44am
4
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.