Deploy Edge Functions from your phone

One of the sharpest limitations of Supabase development on mobile is Edge Function deployment. The CLI requires a terminal. The dashboard's function editor exists but doesn't deploy — it's just for viewing. BaseDeck solves this completely. Here's how to write and deploy a function in under five minutes, entirely from your phone.

Before you start

You need BaseDeck installed and signed in with a Supabase project selected. If you haven't done that yet, open basedeck.netlify.app/dashboard, sign in with your Personal Access Token, and select your project. The whole setup takes about two minutes.

1

Tap Functions in the bottom nav

From any tab in the dashboard, tap the Functions icon (bolt) in the bottom navigation bar. This loads your list of currently deployed Edge Functions.

2

Tap the Deploy button

At the top of the Functions list, tap + Deploy. This opens the deployment editor.

Step 2 — Write your function

The editor opens with a starter TypeScript template. You can replace it with your own code. The editor supports syntax highlighting, bracket matching, and mobile-friendly touch scrolling.

import { serve } from "https://deno.land/std@0.168.0/http/server.ts"

serve(async (req: Request) => {
  const { name } = await req.json()
  return new Response(
    JSON.stringify({ message: `Hello ${name}!` }),
    { headers: { "Content-Type": "application/json" } }
  )
})

Edge Functions run on Deno, so imports use URLs rather than npm packages. The deno.land/std library covers most common utilities.

Step 3 — Set the function name

3

Enter a function name

Type the function slug in the name field — this becomes the URL path. Use lowercase letters, numbers, and hyphens only. For example: hello-world.

Step 4 — Choose JWT verification setting

The JWT toggle controls whether callers need to send a Supabase user token. For a public API endpoint, disable it. For a function that accesses user data, keep it enabled.

Disabling JWT verification makes the function publicly accessible to anyone who knows the URL. Only do this if your function handles its own authorization or serves entirely public data.

Step 5 — Deploy

5

Tap the Deploy button

Tap Deploy. BaseDeck sends the function to the server-side bundle endpoint, which calls the Supabase deployment API. A deploy log panel slides up showing real-time progress.

When deployment completes, you'll see a success state with the live function URL. You can tap it to test the function immediately using the Invoke panel.

What's next

Now that you can deploy single-file functions, check the multi-file functions guide to learn how to deploy more complex projects with shared utility code. Or head to the database guide to learn how to browse and query your data from mobile.