Hello everyone, I'm having trouble deploying my app to Vercel. My project contains: • A React frontend (Vite + Tailwind) at the root, • And a Node/Express backend in a /server folder.
When I deploy to Vercel via GitHub, the app only partially displays or directly displays the raw contents of the JS or HTML file, instead of executing the code normally.
I understand that Vercel doesn't natively support Express, so I'm trying to convert my endpoints to serverless functions in an /api folder, but it's not working yet.
I've also added some environment variables to the Vercel interface (like API_KEY, VITE_API_URL, etc.).
⸻
🔧 Here's what I'm looking for: • Is there a recommended method for properly deploying an Express backend to a full-stack project on Vercel? • Should I completely separate the backend (on Render, for example)? • Or is there a specific configuration (vercel.json, file structure, etc.) I can follow to make everything work from a single repo?
Thank you very much for your help 🙏
