feature: edge functions references#37
Conversation
|
@kallebysantos commented on closed PR
|
397502e to
d097278
Compare
68537fb to
a5596d8
Compare
|
Hey Functions team, I've gave this another look by comparing the information from the reference files and our documentation. Below is the changelog report with the changes for each file and the sources I used for each one. Note: The example still use the legacy If this is not the case and the publishable keys are enabled by default, happy to change this. edge-adv-websockets.md — Replaced edge-dbg-limits.md — Replaced non-existent
edge-adv-regional.md — Expanded region list from 6 to all 14 available regions (added ap-northeast-2, ap-south-1, ap-southeast-2, ca-central-1, us-west-2, eu-west-2, eu-west-3, sa-east-1). edge-adv-streaming.md — Clarified that both raw streaming and SSE-formatted streaming are valid patterns, added try/catch/finally error handling in stream start callback matching official AI Models examples, reframed "incorrect" example around missing error handling instead of format. edge-auth-jwt-verification.md — Qualified "no network request" claim for
edge-auth-rls-integration.md — Added
edge-db-direct-postgres.md — Removed edge-dbg-testing.md — Added edge-fun-project-structure.md — Added
edge-fun-quickstart.md — Added
edge-pat-background-tasks.md — Added edge-pat-cors.md — Changed error response status code from 500 to 400 to match official CORS example. edge-pat-error-handling.md — Updated guidance from "never expose error.message" to "include helpful error messages" matching official docs recommendation, updated code example to return edge-pat-routing.md — Changed Hono import from |
3b43299 to
4daddba
Compare
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (2)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing touches🧪 Generate unit tests (beta)
Comment |
* rebase and house keeping * fix edge functions reference files after docs review * update agents.mdd
Summary
Adds 15 Edge Functions reference files organized into 6 sections:
edge-fun-*): Quickstart, project structure, and fat functions patternedge-auth-*): JWT verification withjose+ JWKS endpoint, RLS integrationedge-db-*): supabase-js client patterns and direct Postgres with Drizzle ORMedge-pat-*): CORS, multi-route with Hono, error handling, background tasks viaEdgeRuntime.waitUntil()edge-adv-*): SSE streaming, WebSockets, regional invocationedge-dbg-*): Deno test patterns and runtime limitsUses modern
SUPABASE_PUBLISHABLE_KEYnaming andjsr:@panva/jose@6for JWT verification. UpdatesSKILL.md,AGENTS.md, and_sections.md.