Edge Function deploy returns opaque 500 due to top-level bootstrap error (generate-lesson)
Supabase CLI 2.76.15 and edge-runtime 1.73.3 fail deploy for function 'generate-lesson' after successful uploads. The failure is deterministic for this function's 740-line body, but a stub or similar function succeeds. The body likely performs top-level asynchronous work before Deno.serve, causing a bootstrap error that the platform masks as a 500 without logs.
