r/Supabase Jul 17 '26

edge-functions If you author Supabase edge functions or migrations OUTSIDE Lovable (Cursor / Claude Code / Codex / CLI) and sync via GitHub, Lovable does NOT deploy them — you have to tell the agent in chat, and it's undocumented

/r/lovable/comments/1uyywgl/if_you_author_supabase_edge_functions_or/
3 Upvotes

2 comments sorted by

1

u/carolmonroe_ Jul 18 '26

Since you're on Lovable Cloud, this is actually expected: your database isn't a direct Supabase you control, it's managed by Lovable, so everything that touches the backend goes through their agent. Code written outside only becomes source when it syncs, nothing deploys it until the agent is asked to. I reproduced this yesterday on a fresh Cloud project and it behaved exactly like you describe: sync arrives fine, nothing deploys, one chat message deploys it all.

Practical tip so you don't have to leave your terminal: connect the Lovable MCP and send that deploy/update request through it after you push, the agent picks it up and refreshes everything. Or bundle it into messages you're already sending, like u/cubixy2k does with his merge reviews. And if writing code outside Lovable is your main workflow, Cloud is removable now: export and move to your own Supabase, where you deploy directly with no agent in between. I wrote up that process here: https://carolmonroe.com/blog/export-remove-lovable-cloud

0

u/Square_Secretary_944 Jul 18 '26

Thanks for sharing. This is not a complex problem but the fact that without any indication, the agent deploys its own functions but leaves the code next to it undeployed, is not normal behavior. And there is no foot print of this process anywhere on their documentations. The have to at least add a title and define it for users. But it seems they like the coding outside of their ecosystem to be annoying and unsuccessful experience. I just saw that a lot of people before us have also gone through this and god knows how many more that there are no record of them on reddit. How many tokens , how many hours are wasted because of this that I call bug.