fix(deploy): deploy Edge Functions via --use-api (no Docker bundler)#85
Merged
Conversation
`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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
cerefox server deployshelled out tosupabase 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 withentrypoint path does not exist.--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.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-onlydeploys all 9 EFs via the API bundler (verified live: "Uploading asset…" path, "✓ Deployed 9 Edge Function(s).")cerefox doctorconfirms the deployed functions respond —✓ edge functions Deployed EF v0.10.1(drift warning cleared)Fixes #84.
🤖 Generated with Claude Code