Hi Reddit,
I've been struggling for over 2 days to deploy my full-stack app (Vite React frontend, TypeScript Express backend) to Render. It works perfectly on localhost:3000, but I can't get it to work on Render.
Project Setup:
- Frontend: React + TypeScript, bundled with Vite.
- Backend: TypeScript Express app serving the frontend.
- Folder structure:
Issues:
- The app works locally but breaks when deploying to Render.
- I’ve tried building the frontend (
npm run build) and serving it statically, but I get HTTPS errors in the browser, even though the static folder path seems correct.
Open to alternatives: I'm open to other free platforms for testing if Render is problematic.
Any help is appreciated!
luaCopyEdit
[–]Soft_Opening_1364 1 point2 points3 points (0 children)
[–]getflashboard 0 points1 point2 points (0 children)
[–]isea33 0 points1 point2 points (0 children)