supabase / cli

Supabase CLI. Manage postgres migrations, run Supabase locally, deploy edge functions. Postgres backups. Generating types from your database schema.
https://supabase.com/docs/reference/cli/about
MIT License
1.02k stars 201 forks source link

Option to change Supabase URL for Supabase Studio #551

Closed ccssmnn closed 1 year ago

ccssmnn commented 1 year ago

Feature request

Is your feature request related to a problem? Please describe.

I want to setup an ephemeral development environment with Gitpod to speed up our workflow. With Gitpod, everything runs in a cloud instance with Docker access. Ports are made available through subdomains: localhost:54321➡️https://54321-WORKSPACE.gitpod.io. Accessing Supabase Studio gets stuck after selecting the Default Project because it is configured to search on localhost. The browser console shows failed requests to http://localhost:54321/rest/v1/.

Describe the solution you'd like

I would love to configure the Supabase URL for my local Supabase Studio. An option for the supabase start command would be great. Maybe `supabase start --supabase-url=https://custom-domain.com

Describe alternatives you've considered

You can make this work when using Gitpods VS-Code extension. This way, all the ports are forwarded through localhost and the assumptions of the CLI still stand. This adds some friction to the process, especially when using Gitpod for reviewing PRs or onboarding people.

sweatybridge commented 1 year ago

I believe this is the same issue as https://github.com/supabase/cli/issues/270. Will close this as dupe.