DAY 4 - Dev mode vs Production
Deployed a lead finder that scrapes Casablanca + Marrakech, checks each clinic's website quality, generates an AI prospection message, and delivers everything to Gmail + ClickUp every Monday morning. What broke: tested in DEV mode — the run stalled after 2 minutes with "missing heartbeats". The local CLI had disconnected. Claude Code explained the difference: DEV needs the CLI running, Production runs fully on Trigger.dev servers. Switched environment, ran perfectly.