---
title: "Edge Functions are now available in Supabase"
description: "Supabase Edge Functions run TypeScript globally on the Deno runtime via Deno Deploy across 30+ data centers."
url: "https://swe.quest/articles/edge-functions-are-now-available-in-supabase-3c06235615e01037"
canonical: "https://supabase.com/blog/supabase-edge-functions"
source: "Supabase"
published: "2022-03-31"
difficulty: "easy"
kind: "Announcement"
reading_minutes: 7
tags: ["serverless","cdn-edge","typescript","system-design"]
---

# Edge Functions are now available in Supabase

A post on [Supabase](https://swe.quest/sources/supabase.md), published 2022-03-31, 7 min read, Announcement. Original: [https://supabase.com/blog/supabase-edge-functions](https://supabase.com/blog/supabase-edge-functions)

## Summary

Supabase Edge Functions run TypeScript globally on the Deno runtime via Deno Deploy across 30+ data centers. Supabase chose functions-as-a-service over containers for simpler developer experience and faster start-ups, and global deployment over a single region, with Postgres-colocated Database Functions covering DB-heavy work. Requests pass through a Relay gateway that verifies JWTs, rate-limits and logs, then maps function metadata to a Deno Deploy deployment ID. Cold starts fetch code and secrets from Supabase, and logs flow through Logflare into the dashboard. Functions are POST-only, and static hosting is ruled out after phishing abuse on Supabase Storage got the domain denylisted.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [Serverless](https://swe.quest/tags/serverless.md) (Backend & APIs)
- [CDN & edge](https://swe.quest/tags/cdn-edge.md) (Infrastructure)
- [TypeScript](https://swe.quest/tags/typescript.md) (Languages)
- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)

## Prerequisites

- serverless functions ([easy posts on Serverless](https://swe.quest/tags/serverless.md?difficulty=easy))
- JWT authentication ([easy posts on Identity & auth](https://swe.quest/tags/identity-auth.md?difficulty=easy))

## Keywords

Supabase Edge Functions, Deno, Deno Deploy, Logflare, supabase-js, Stripe

## Related posts

- [Supabase Edge Runtime: Self-hosted Deno Functions](https://swe.quest/articles/supabase-edge-runtime-self-hosted-deno-functions-55b12d1d5db96506.md): Supabase · 2023-04-11 · Medium · 7 min read · Serverless, Runtimes & VMs, JavaScript, Rust, Open source
  Supabase Edge Runtime is an MIT-licensed, Rust-based web server built on deno\_core that self-hosts Deno Edge Functions (TypeScript, JavaScript, WASM) without code changes.
- [Edge Functions: Node and native npm compatibility](https://swe.quest/articles/edge-functions-node-and-native-npm-compatibility-4f29863e45494db0.md): Supabase · 2023-12-12 · Medium · 3 min read · Serverless, JavaScript, Observability
  Supabase Edge Functions now natively support npm modules (via \`npm:\` imports) and Node built-in APIs, so existing Node apps using Express, node-postgres and Drizzle can migrate with minimal changes.
- [Introducing @supabase/server](https://swe.quest/articles/introducing-supabase-server-014f7e505754650d.md): Supabase · 2026-05-06 · Medium · 8 min read · Identity & auth, Serverless, TypeScript, Developer tools
  @supabase/server, now in public beta, replaces the repeated setup code found across 25,000 analyzed Edge Functions: client creation, JWT verification, claims parsing, CORS and auth wiring.
- [Executing Dynamic JavaScript Code on Supabase with Edge Functions](https://swe.quest/articles/executing-dynamic-javascript-code-on-supabase-with-edge-functions-453a9cbf7d5eb761.md): Supabase · 2024-11-13 · Medium · 11 min read · Serverless, PostgreSQL, JavaScript, Security
  Supabase Edge Functions can execute arbitrary JavaScript sent in the request body by wrapping it in an async \`new Function()\` that receives a preconfigured service-role Supabase client, so business logic can change without redeploying.
- [Supabase Middleware: composable, reusable middleware for Web Fetch handlers](https://swe.quest/articles/supabase-middleware-composable-reusable-middleware-for-web-fetch-handlers-136b7931628c402b.md): Supabase · 2026-10-15 · Medium · 8 min read · TypeScript, Serverless, Identity & auth, API design, AI agents
  \`@supabase/middleware\` is an MIT-licensed, type-safe middleware engine for Web Fetch handlers.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
