Duplicate Files in Edge Functions

I’m running into an issue where Supabase shows duplicate files (for example, two index.ts files) under a single Edge Function, even though only one actually exists in my repo.

This seemed to start after I added a subdirectory inside an Edge Function folder during development. Ever since then, old versions of files keep showing up in deployments, even after I deleted the subdirectory and redeployed.

I’m using Lovable for deployments, which automatically pushes to Supabase. It looks like cached or leftover build artifacts might be getting redeployed. I already tried removing .output, dist, and node_modules, reinstalling dependencies, and doing a clean redeploy, but the duplicates still appear in the Supabase dashboard.

Has anyone else seen this behavior after having a nested folder or subdirectory inside an Edge Function? Any tips on how to fully clear old function files or reset the deployment cache?
Was this page helpful?