• Will Chen's avatar
    Bulk supabase edge function update (#2002) · a121dbc9
    Will Chen 提交于
    Context:
    - https://github.com/orgs/supabase/discussions/33720
    - https://supabase.com/docs/reference/api/v1-deploy-a-function
    
    <!-- CURSOR_SUMMARY -->
    > [!NOTE]
    > Introduces a two-step deploy flow for edge functions: parallel
    bundling followed by bulk activation, plus API shape updates.
    > 
    > - Adds `DeployedFunctionResponse` and updates `deploySupabaseFunction`
    to support `bundleOnly`, return the deployed function payload, and use
    `import_map_path`
    > - Implements `bulkUpdateFunctions` (PUT `/projects/{id}/functions`) to
    activate multiple functions at once
    > - In `deployAllSupabaseFunctions`, filters to functions with
    `index.ts`, bundles them in parallel (`bundleOnly=true`), aggregates
    successes/errors, then bulk-activates successful bundles
    > - Cleans up import map generation (`imports: {}`) and switches deploy
    URL construction to include `bundleOnly` query param
    > 
    > <sup>Written by [Cursor
    Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
    7b1d63ee73a56dc24b3465d812838bc5bf5bd0e5. This will update automatically
    on new commits. Configure
    [here](https://cursor.com/dashboard?tab=bugbot).</sup>
    <!-- /CURSOR_SUMMARY -->
    a121dbc9
supabase_utils.ts 6.1 KB