Deno 2.1 Preview **local only**

Mar 7, 2025

You can now try Deno 2.1 locally with Supabase CLI. The goal of local preview is to identify any regressions or missing functionality before we upgrade hosted version to Deno 2.1.

The hosted version still uses Deno 1.4+, and if you deploy functions written with Deno 2.1, some of the features may not work.

UPDATE 04/09/25: hosted version is now using Deno 2.1 - https://github.com/orgs/supabase/discussions/37941

How to try#


_10
[edge_runtime]
_10
deno_version = 2

  • All your existing functions should work as before.

*To scaffold a new function as a Deno 2 project:


_10
deno init --serve hello-world

  • Open supabase/config.toml and add the following:

_10
[functions.hello-world]
_10
entrypoint = "./functions/hello-world/main.ts"

  • Open supabase/functions/hello-world/main.ts and modify line 10 to:

_10
if (url.pathname === "/hello-world") {

Please give it a try and report any bugs and feedback.

Build in a weekend, scale to millions