Repository navigation
docs: update Supabase edge function guide to SDK v4 - #5133
Conversation
The hello world edge function imported npm:@trigger.dev/sdk@3.0.0 and told readers to use a 3.x version. Import the v4 SDK instead. Co-Authored-By: Claude <noreply@anthropic.com>
|
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
Match the database webhooks guide, which imports npm:@trigger.dev/sdk@latest in its edge function. Co-Authored-By: Claude <noreply@anthropic.com>
Requested by Chris Arderne · Slack thread
Before: The "Triggering tasks from Supabase edge functions" guide imported
npm:@trigger.dev/sdk@3.0.0in the edge function example and told readers to use a 3.x SDK version, so anyone copying it got the old v3 SDK.After: The example imports the current SDK with
npm:@trigger.dev/sdk@latest, the same way the database webhooks guide does.How: one change in
docs/guides/frameworks/supabase-edge-functions-basic.mdx: the edge function code block now importsnpm:@trigger.dev/sdk@latest, and the outdated version comment above it is removed. The rest of the SDK usage on the page already matches v4: a type-only import of thehello-worldtask from theexample.tsfile thattrigger.dev initcreates,tasks.trigger<typeof helloWorldTask>(id, payload), and theTRIGGER_SECRET_KEYsecret. The sibling database webhooks guide and the shared Supabase snippets already use v4 imports (@trigger.dev/sdk,npm:@trigger.dev/sdk@latest) andtrigger.dev@latestCLI commands, so they are unchanged.✅ Checklist
Testing
Docs-only change. Checked the edge function example against the SDK source (
tasks.triggersignature and package exports) and thetrigger.dev initexample task. Checked the remaining Supabase guides and snippets for v3 imports, versions and CLI commands; none were left.Changelog
Supabase edge function hello world guide now uses the v4 SDK.
🤖 Generated with Claude Code