From 3da15da39adfcf4b424f9be4ab2e6120129ea76c Mon Sep 17 00:00:00 2001 From: Kody Jackson Date: Wed, 18 Nov 2026 13:08:46 -0600 Subject: [PATCH] chore(docs) - fix missing imports for supabase server + remove comment from snippet (#53635) ## Problem Missing imports + a comment that prevents easy copy / paste in the edge functions quickstart. Both of these actually caused the Edge Functions quickstart to fail / not work as intended. ## Solution Adds imports + removes comment ## Preview links https://docs-git-kody-devrel-874-quickstart-error-codes-a3bfdf-supabase.vercel.app/docs/guides/functions/quickstart --------- Co-authored-by: Claude Sonnet 5.5 --- apps/docs/content/guides/functions/quickstart.mdx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/docs/content/guides/functions/quickstart.mdx b/apps/docs/content/guides/functions/quickstart.mdx index d4333e1a902..453ba01dcf3 100644 --- a/apps/docs/content/guides/functions/quickstart.mdx +++ b/apps/docs/content/guides/functions/quickstart.mdx @@ -35,7 +35,7 @@ If you already have a project locally, navigate to your project directory. If yo ```bash cd your-existing-project -supabase init # Initialize Supabase, if you haven't already +supabase init ``` @@ -63,6 +63,8 @@ When an HTTP request is sent to Edge Functions, you can use Supabase Auth to sec This creates a new function at `supabase/functions/hello-world/index.ts` with this starter code: ```tsx +import { withSupabase } from 'npm:@supabase/server@1' + export default { fetch: withSupabase({ auth: ['publishable', 'secret'] }, async (req, ctx) => { const { name } = await req.json() @@ -87,7 +89,7 @@ The `supabase functions new` command also optionally creates Deno configuration After starting Docker, start the local development server to test your function: ```bash -supabase start # Start all Supabase services +supabase start supabase functions serve hello-world ```