Skip to content

fix(deploy): deploy Edge Functions via --use-api (no Docker bundler)#85

Merged
fstamatelopoulos merged 1 commit into
mainfrom
fix/ef-deploy-use-api
Jun 6, 2026
Merged

fix(deploy): deploy Edge Functions via --use-api (no Docker bundler)#85
fstamatelopoulos merged 1 commit into
mainfrom
fix/ef-deploy-use-api

Conversation

@fstamatelopoulos
Copy link
Copy Markdown
Owner

Summary

  • cerefox server deploy shelled out to supabase functions deploy, which silently switches to the local Docker bundler when Docker Desktop is running. That bundler bind-mounts the function source directory — and when the npm package is installed under a path Docker Desktop won't file-share (e.g. /usr/local), the mount is empty and every function fails with entrypoint path does not exist.
  • Fix: pass --use-api, which bundles server-side via the Supabase Management API. Docker-independent, works regardless of npm prefix, and is the correct path for an end user deploying to cloud Supabase.
  • Reported by @tdebasis (EF deploy fails (entrypoint path does not exist) when global npm prefix is /usr/local and Docker Desktop is running #84) — npm prefix /usr/local + Docker Desktop running.

Test plan

  • cerefox server deploy --functions-only deploys all 9 EFs via the API bundler (verified live: "Uploading asset…" path, "✓ Deployed 9 Edge Function(s).")
  • cerefox doctor confirms the deployed functions respond — ✓ edge functions Deployed EF v0.10.1 (drift warning cleared)

Fixes #84.

🤖 Generated with Claude Code

`cerefox server deploy` shelled out to `supabase functions deploy`, which uses
the local Docker bundler when Docker Desktop is running — bind-mounting the
function source dir. When the npm package lives under a path Docker Desktop
won't file-share (e.g. /usr/local), the mount is empty and every function
fails with "entrypoint path does not exist" (issue #84). Pass --use-api to
bundle server-side via the Management API: Docker-independent, works regardless
of the npm prefix, and the right path for an end-user deploying to cloud
Supabase. Verified: deploys all 9 EFs + doctor confirms them live at v0.10.1.

Fixes #84.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@fstamatelopoulos fstamatelopoulos merged commit e427888 into main Jun 6, 2026
2 checks passed
@fstamatelopoulos fstamatelopoulos deleted the fix/ef-deploy-use-api branch June 6, 2026 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EF deploy fails (entrypoint path does not exist) when global npm prefix is /usr/local and Docker Desktop is running

1 participant