Edge Functions: Deploy from the Dashboard + Deno 2.1

Now you can create, test, edit, and deploy Edge Functions directly from the Supabase Dashboard. We're also releasing Deno 2.1 Preview today but more on that later. ⚡️ More on Launch Week Creating Edge Functions from the Supabase Dashboard To write an Edge Functions previously, you had to install the Supabase CLI, spin up Docker, and then set up your editor to use Deno. Those steps are no longer necessary. The Edge Functions editor in the Dashboard has built-in syntax highlighting and type-checking for Deno and Supabase-specific APIs. The Edge Functions editor includes templates for common use cases, such as Stripe WebHooks, OpenAI proxying, uploading files to Supabase Storage, and sending emails. Once a Function has been deployed you can make edits directly within the Dashboard, and if you get stuck you can summon an inline AI Assistant to explain, debug or write code. Downloading Edge Functions You can download Edge Functions source code via Supabase CLI using supabase functions download FUNCTION_NAME or by clicking the Download button in the dashboard. The Dashboard's Edge Function editor currently does not support versioning or rollbacks. We recommend using it only for quick testing and prototypes. When you’re ready to go to production, store Edge Functions code in a source code repository (e.g. git) and deploy it using one of the CI integrations. Testing Edge Functions from the Supabase Dashboard We are introducing a built-in tool for testing your Edge Functions from the Supabase Dashboard. You can execute your Edge Function with different request payloads, headers, and query parameters. The built-in tester returns the response status, headers, and body. With the built-in editor and tester, you have a streamlined workflow for creating, testing, and refactoring your Edge Functions without leaving the Supabase Dashboard. Deploying Edge Functions no longer requires Docker By popular request, you can now deploy Edge Functions from the Supabase CLI with the --use-api flag, which will not use Docker. We will make this the default behavior in future releases (with a --use-docker flag as a fallback option.) supabase functions deploy MY_FUNCTION --use-api New APIs for Deploying Edge Functions The ability to deploy without Docker in both the Edge Functions editor and Supabase CLI are made possible by new APIs we introduced to deploy and update Edge Functions. These APIs are publicly available for you to build custom integrations and workflows. You can check the Changelog announcement for more details and official references to these API endpoints. Deno 2.1 Preview Last, but not least, we have added Deno 2.1 support for Supabase Edge Runtime. With Deno 2.1, you can use built-in Deno commands to scaffold a new project, manage dependencies, run tests, and lints. Check our guide on how to start using Deno 2.1 tooling for your Edge Functions. Note that the Supabase hosted platform is still using Deno 1.45. In the coming weeks, we will provide more details on deploying Deno 2.1 projects in the hosted platform. Conclusion These changes to Supabase Edge Functions make it easier and more accessible for all developers to build powerful functionality into their applications. Read the Edge Functions documentation to learn more Sign up for Supabase and get started today Launch Week 14 Main Stage Day 1 - Supabase UI Library Day 2 - Supabase Edge Functions: Deploy from the Dashboard + Deno 2.1 Build Stage 01 -Postgres Language Server 02 -Supabase Auth: Bring Your Own Clerk 03 -Automatic Embeddings in Postgres Community Meetups

Apr 1, 2025 - 23:25
 0
Edge Functions: Deploy from the Dashboard + Deno 2.1

Now you can create, test, edit, and deploy Edge Functions directly from the Supabase Dashboard. We're also releasing Deno 2.1 Preview today but more on that later.

⚡️ More on Launch Week

Creating Edge Functions from the Supabase Dashboard

To write an Edge Functions previously, you had to install the Supabase CLI, spin up Docker, and then set up your editor to use Deno. Those steps are no longer necessary. The Edge Functions editor in the Dashboard has built-in syntax highlighting and type-checking for Deno and Supabase-specific APIs.

decorative

The Edge Functions editor includes templates for common use cases, such as Stripe WebHooks, OpenAI proxying, uploading files to Supabase Storage, and sending emails.

example dropdown

Once a Function has been deployed you can make edits directly within the Dashboard, and if you get stuck you can summon an inline AI Assistant to explain, debug or write code.

example code dropdown

Downloading Edge Functions

You can download Edge Functions source code via Supabase CLI using supabase functions download FUNCTION_NAME or by clicking the Download button in the dashboard.

example code from dashboard

The Dashboard's Edge Function editor currently does not support versioning or rollbacks. We recommend using it only for quick testing and prototypes. When you’re ready to go to production, store Edge Functions code in a source code repository (e.g. git) and deploy it using one of the CI integrations.

Testing Edge Functions from the Supabase Dashboard

We are introducing a built-in tool for testing your Edge Functions from the Supabase Dashboard. You can execute your Edge Function with different request payloads, headers, and query parameters. The built-in tester returns the response status, headers, and body.

example dashboard edge function template

With the built-in editor and tester, you have a streamlined workflow for creating, testing, and refactoring your Edge Functions without leaving the Supabase Dashboard.

Deploying Edge Functions no longer requires Docker

By popular request, you can now deploy Edge Functions from the Supabase CLI with the --use-api flag, which will not use Docker. We will make this the default behavior in future releases (with a --use-docker flag as a fallback option.)

supabase functions deploy MY_FUNCTION --use-api

New APIs for Deploying Edge Functions

The ability to deploy without Docker in both the Edge Functions editor and Supabase CLI are made possible by new APIs we introduced to deploy and update Edge Functions. These APIs are publicly available for you to build custom integrations and workflows.

You can check the Changelog announcement for more details and official references to these API endpoints.

Deno 2.1 Preview

Last, but not least, we have added Deno 2.1 support for Supabase Edge Runtime. With Deno 2.1, you can use built-in Deno commands to scaffold a new project, manage dependencies, run tests, and lints.

Check our guide on how to start using Deno 2.1 tooling for your Edge Functions.

Note that the Supabase hosted platform is still using Deno 1.45. In the coming weeks, we will provide more details on deploying Deno 2.1 projects in the hosted platform.

Conclusion

These changes to Supabase Edge Functions make it easier and more accessible for all developers to build powerful functionality into their applications.

Launch Week 14

Main Stage

Day 1 - Supabase UI Library
Day 2 - Supabase Edge Functions: Deploy from the Dashboard + Deno 2.1

Build Stage

01 -Postgres Language Server
02 -Supabase Auth: Bring Your Own Clerk

03 -Automatic Embeddings in Postgres

Community Meetups