Custom Domain
Custom Domain
This article describes the steps to connect a custom domain to the published CJH site, TLS/HTTPS considerations, and the one Capacitor step you must remember for native builds.
High-level steps
- Open Project → Settings → Domains in your host (Lovable or other hosting provider). Click Connect Domain. The README documents a Connect Domain step in the Lovable flow. :contentReference[oaicite:12]{index=12}
- Follow DNS instructions: Add the DNS records required by your host (CNAME or A records). Wait for DNS propagation.
- Verify domain ownership as required by the host (TXT, CNAME validation, etc.).
- Confirm TLS: Ensure the host has provisioned a TLS certificate (most hosts and Lovable can provision Let’s Encrypt certificates automatically).
Capacitor-specific note (native apps)
If you build native apps with Capacitor and you change the production domain, update the Capacitor server.url (if your configuration uses it) and rebuild the native projects:
# Rebuild and sync after updating server url
npm run build && npx cap sync
The README explicitly instructs to update the Capacitor server URL when switching to a custom domain and then rebuild/sync. This prevents native apps from pointing to the wrong development preview URL.[](https://github.com/thejdmckinney/job-flow-hub-71/blob/main/README.md)
Additional checks after domain connection
- PWA install — open the domain on desktop/mobile and confirm the PWA install prompt works.[](https://github.com/thejdmckinney/job-flow-hub-71/blob/main/README.md)
- Map/Geocoding — test a property geocode to ensure server functions still work behind the custom domain (if your serverless functions require host-specific whitelisting).[](https://github.com/thejdmckinney/job-flow-hub-71/blob/main/src/components/properties/PropertyDialog.tsx)
Troubleshooting tips
- Certificate errors: Wait for provisioning or clear cache if an old certificate is cached.
- Map errors after domain change: If map tiles fail, check
VITE_MAPBOX_STYLE_URLand per-tenant Mapbox tokens; make sure tokens are valid for the domain if your provider enforces domain restrictions.[](https://github.com/thejdmckinney/job-flow-hub-71/blob/main/docs/jobs-map-view.md)
Updated on: 10/01/2026
Thank you!
