-
Notifications
You must be signed in to change notification settings - Fork 328
Description
Is your feature request related to a problem? Please describe.
I have an project each for development and for production. Although unlikely, it is possible for me to run supabase link and accidentally select the production project.
If this does happen, it's not likely to be noticed until the push has completed because:
- The output of
supabase linkdoes not specify which project was just linked supabase db pushandsupabase deploydo not ask for confirmation that you want to deploy to the linked project and only show the linked project after the deploy or push has completed
(Maybe the correct thing is to use branching but I set this up before branching was available and haven't migrated. I'm not sure if this is a problem with branching)
Describe the solution you'd like
The cli should state which project was just linked to and confirm (requiring the user to respond before the command continues) which project will be pushed/deployed to when running supabase db push or supabase functions deploy.
An alternative feature would be an option in config.toml to include/exclude projects that the cli can use. This way I can exclude my production environment and then I won't even be able to link to it (since 99% of the time schema changes and edge function deployments happen in my CI)