Repository navigation
fix(upload): send resumable uploads to the configured Supabase URL - #358
Merged
Merged
Conversation
The resumable upload built its own storage hostname instead of using the Supabase URL in ENVIRONMENTS. For prod that URL is a devicecloud.dev custom domain, so customer networks only need to reach devicecloud.dev. Also removes the unused signed-URL upload path, which was the only user of @supabase/supabase-js, and drops that dependency. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. 🤖 Generated with Claude Code |
Merged
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.
What
ENVIRONMENTS[env].supabase.urlas its storage host. Before, it built a<project>.storage.supabase.cohostname itself and ignored the configured URL.devicecloud.devcustom domain. So after this change, uploads from the CLI only needdevicecloud.devto be reachable, notsupabase.co. Dev is unchanged in practice: its configured URL is the project's own Supabase URL.SupabaseGateway.uploadToSignedUrl, which nothing called, and its two debug helpers.@supabase/supabase-js, so the dependency is removed too.projectReffield fromENVIRONMENTS.Checked
pnpm lint,pnpm typecheck,pnpm test:unit(766 passing),pnpm build,pnpm auditall pass locally.Not yet checked
Locationheader after the first request, and I haven't confirmed that it stays on the custom domain. Rundcd upload --debug(ordcd cloud --debug) against prod from a beta build before releasing.🤖 Generated with Claude Code