5 Commits

Author SHA1 Message Date
Vaibhav d5fde192d5 examples: migrate Edge Functions to @supabase/server (#46890)
- extends/supersedes: #46665 
- towards COM-269

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Refactor**
* Standardized Edge Function entrypoints across examples to a consistent
`export default` shape, with runtime-provided admin access for
storage/database operations.
  * Updated public endpoint handling to use appropriate auth modes.
* **Bug Fixes**
* Improved error handling to return structured JSON responses with
correct HTTP status codes for invalid requests and failures.
  * Harmonized local invocation examples to use the right header format.
* **Chores**
* Updated example `verify_jwt` settings to disable JWT verification for
public/demo endpoints.
* **Documentation**
  * Fixed README typo and refreshed invocation curl examples.
* **Tests**
  * None.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Tomas Pozo <tomaspozogarzon@gmail.com>
2026-06-26 15:04:46 -05:00
Lakshan Perera 67367d7f4e chore: updated Edge Functions examples (#18742)
* Removed the use of deprecated std/http in favor of Deno.serve
* Use full import paths instead of using paths from import maps (less
  confusing, easy to copy examples)
* Formatted all examples with `deno fmt`
2023-11-06 19:55:22 +11:00
thorwebdev 0877df6fbb chore: use latest cli version. 2023-06-01 12:58:01 +08:00
thorwebdev 5bd05e4099 chore: update to import_map and serve. 2023-02-17 14:09:27 +08:00
thorwebdev 07c406b623 feat: add GitHub Actions deploy Edge Function example 2022-10-07 15:30:37 +08:00