Deploying with Lovable
Deploying with Lovable
CJH is integrated with Lovable Cloud. The Lovable workflow is the simplest path to publish the web PWA. These steps explain publishing and the basic verification steps.
Quick publish (Lovable UI)
- Open your Lovable Project dashboard for the CJH project.
- Choose Share → Publish. Lovable will run the build and publish the site. The README lists this as the standard publish flow. :contentReference[oaicite:6]{index=6}
Recommended pre-publish checklist
Before publishing to a tenant or production URL, verify:
- Environment variables set in Lovable (or your build environment) — for example
VITE_MAPBOX_STYLE_URL/ dark style. :contentReference[oaicite:7]{index=7} - Per-tenant Mapbox token (if not using a demo token) — configure via tenant Integrations so the published site uses per-tenant tiles. :contentReference[oaicite:8]{index=8}
- Sentry/monitoring DSN configured if you want error reporting in production. :contentReference[oaicite:9]{index=9}
- Push & payment provider configs set (if you expect those features in production). Payment secrets remain server-side; ensure your backend is configured.
Verification after publish
- Smoke test the site: open the published domain and verify the PWA install prompt, basic navigation, Jobs Map loads, and sample job creation.
- Geocoding test: Add or update a property and verify the geocode coordinates are returned (this ensures server-side geocoding is functional). The property dialog invokes a server geocode function in the repo — confirm function logs succeeded. :contentReference[oaicite:10]{index=10}
Notes & advanced options
- Lovable automations often integrate with your Git workflow; commits can trigger builds depending on your project settings. Use Lovable for quick publishing and preview workflows for stakeholder demos.
- For repeatable builds use CI to run
npm run buildand then have Lovable pick up artifacts or point Lovable to your repo/branch to run the build itself.
Troubleshooting
- If the published site’s map or geocoding fails, confirm the Lovable environment contains the required env vars and that tenant integration tokens are set (Mapbox public tokens). :contentReference[oaicite:11]{index=11}
Updated on: 10/01/2026
Thank you!
