Prompt Buddy logoPrompt Buddy

supabase · Supabase Docs

Supabase Getting Started with Edge Functions

A step-by-step guide to initializing a Supabase project, generating a TypeScript Edge Function using the CLI, testing the function in a local Docker environment, and deploying it to the Supabase edge network.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Supabase Getting Started with Edge Functions

A step-by-step guide to initializing a Supabase project, generating a TypeScript Edge Function using the CLI, testing the function in a local Docker environment, and deploying it to the Supabase edge network.

When To Use

Use when you need to set up, develop locally, and deploy a new TypeScript Edge Function using the Supabase CLI and Deno runtime.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/supabase-getting-started-with-edge-functions-workflow-guide.mdA guide covering the creation, local testing, and deployment of Supabase Edge Functions using the Supabase CLI.Questions about a guide covering the creation, local testing, and deployment of Supabase Edge Functions using the Supabase CLI.
examples/supabase-getting-started-with-edge-functions-supabase-edge-functions-qui.bashA bash script containing the initial CLI commands to initialize a new Supabase project and prepare for Edge Functions development.Exact payloads, commands, or snippets shown in A bash script containing the initial CLI commands to initialize a new Supabase project and prepare for Edge Functions...
examples/supabase-getting-started-with-edge-functions-supabase-edge-functions-qui-2.bashA sequence of bash commands to initialize a Supabase project and prepare for Edge Function development.Exact payloads, commands, or snippets shown in A sequence of bash commands to initialize a Supabase project and prepare for Edge Function development.
examples/supabase-getting-started-with-edge-functions-supabase-edge-functions-new.bashA bash command used to initialize a new Supabase Edge Function named hello-world.Exact payloads, commands, or snippets shown in A bash command used to initialize a new Supabase Edge Function named hello-world.
examples/supabase-getting-started-with-edge-functions-supabase-edge-functions-tsx.tsxA TypeScript React-style example of a Supabase Edge Function using the withSupabase wrapper to handle requests and JSON responses.Exact payloads, commands, or snippets shown in A TypeScript React-style example of a Supabase Edge Function using the withSupabase wrapper to handle requests and JS...
examples/supabase-getting-started-with-edge-functions-supabase-edge-functions-qui-3.bashBash commands for starting Supabase services and serving a local edge function.Exact payloads, commands, or snippets shown in Bash commands for starting Supabase services and serving a local edge function.
examples/supabase-getting-started-with-edge-functions-supabase-edge-functions-cur.bashA curl command used to send a POST request to a locally running Supabase Edge Function with a JSON payload.Exact payloads, commands, or snippets shown in A curl command used to send a POST request to a locally running Supabase Edge Function with a JSON payload.
examples/supabase-getting-started-with-edge-functions-supabase-edge-functions-hel.jsonA JSON object containing a simple message payload used for testing Supabase Edge Functions.Exact payloads, commands, or snippets shown in A JSON object containing a simple message payload used for testing Supabase Edge Functions.
examples/supabase-getting-started-with-edge-functions-supabase-edge-functions-log.bashA bash command used to authenticate the Supabase CLI for managing edge functions.Exact payloads, commands, or snippets shown in A bash command used to authenticate the Supabase CLI for managing edge functions.
examples/supabase-getting-started-with-edge-functions-supabase-edge-functions-qui-4.bashA sequence of bash commands to list projects and initialize the Supabase CLI for edge functions development.Exact payloads, commands, or snippets shown in A sequence of bash commands to list projects and initialize the Supabase CLI for edge functions development.
examples/supabase-getting-started-with-edge-functions-supabase-edge-functions-lin.bashA bash command to link a local development environment to a specific Supabase project using a project reference ID.Exact payloads, commands, or snippets shown in A bash command to link a local development environment to a specific Supabase project using a project reference ID.
examples/supabase-getting-started-with-edge-functions-supabase-edge-functions-dep.bashA bash command used to deploy a Supabase Edge Function named hello-world.Exact payloads, commands, or snippets shown in A bash command used to deploy a Supabase Edge Function named hello-world.
examples/supabase-getting-started-with-edge-functions-supabase-edge-functions-dep-2.bashA bash command used to deploy Supabase Edge Functions to the cloud.Exact payloads, commands, or snippets shown in A bash command used to deploy Supabase Edge Functions to the cloud.
examples/supabase-getting-started-with-edge-functions-supabase-edge-functions-dep-3.bashA bash command to deploy a Supabase Edge Function named hello-world using the API flag.Exact payloads, commands, or snippets shown in A bash command to deploy a Supabase Edge Function named hello-world using the API flag.
examples/supabase-getting-started-with-edge-functions-supabase-edge-functions-cur-2.bashA curl command demonstrating how to invoke a deployed Supabase Edge Function using a POST request with an API key and JSON payload.Exact payloads, commands, or snippets shown in A curl command demonstrating how to invoke a deployed Supabase Edge Function using a POST request with an API key and...
examples/supabase-getting-started-with-edge-functions-supabase-edge-functions-hel-2.jsonA JSON object containing a message property used as a sample payload for a Supabase Edge Function request.Exact payloads, commands, or snippets shown in A JSON object containing a message property used as a sample payload for a Supabase Edge Function request.
examples/supabase-getting-started-with-edge-functions-supabase-edge-functions-js-.jsxA JSX code snippet demonstrating how to use the Supabase client to invoke an edge function with a request body.Exact payloads, commands, or snippets shown in A JSX code snippet demonstrating how to use the Supabase client to invoke an edge function with a request body.
examples/supabase-getting-started-with-edge-functions-supabase-edge-functions-hel.jsxA JSX code snippet demonstrating how to call a Supabase Edge Function using the fetch API with a POST request.Exact payloads, commands, or snippets shown in A JSX code snippet demonstrating how to call a Supabase Edge Function using the fetch API with a POST request.

What This Skill Covers

  • Learn how to create, test, and deploy your first Edge Function using the Supabase CLI.
  • Main sections: Prerequisites, Step 1: Create or configure your project, Step 2: Create your first function, Step 3: Test your function locally, Function not starting locally?.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://supabase.com/docs/guides/functions/quickstart