Before you use the older tutorial
The original Heroku and Vercel tutorial predates the current deployment guides. It is not a verified v6 procedure. Check these requirements before you adapt it:- Use the Node.js version required by the source guide.
- Keep the API running so that scheduled jobs can execute.
- Set
NODE_ENV=production, bind the API to0.0.0.0, and map Heroku’s assignedPORTtoCB_API_PORTin the start command. - Configure the separate
CB_DB_*andCB_REDIS_*values. Do not assume provider connection URLs are read automatically. - Keep the complete repository during installation and builds because both applications use shared files.
- Install Chromium and its system dependencies for image rendering, and verify that the runtime can find the browser.
- Serve the client build from
client/distand configure a fallback toindex.htmlfor client routes. - Set the public
VITE_APP_CLIENT_HOSTandVITE_APP_API_HOSTbefore the client build.
server/uploads.
If you need persistent local uploads without changing the application, use a VPS with the Docker guide. For any deployment, complete the deployment checks.