decaporg / decap-cms

A Git-based CMS for Static Site Generators
https://decapcms.org
MIT License
17.85k stars 3.04k forks source link

Save netlify URL in project instead of globally #2702

Closed saenglert closed 2 months ago

saenglert commented 5 years ago

Is your feature request related to a problem? Please describe. Netlify saves the netlify URL for local development globally instead of an on project basis.

This means if I am working on two projects A and B and I set up A before B, B will use As netlify URL to pull for example collections.

When logging in to the backend via netlify identity there is an option to reset the development URL, however logging out/in and changing the URL manually every time I switch projects is quite tedious.

Describe the solution you'd like The development URL should be set per project for example in config.yml under backend.netlifyurl and be used from there instead of being manually added.

Describe alternatives you've considered I considered doing it manually all the time but then again I'm a programmer and I like to automate things.

Additional context This feature request could be part of #2335 to improve the local development experience.

saenglert commented 4 years ago

Just ran across this case:

Steps

Result Stuck at login with "Branch not found" message and no option to log out.

erquhart commented 4 years ago

Agreed that we need to improve this, the rub is that it's handled externally through netlify-identity-widget, so ideally the solution would happen there.

martinjagodic commented 2 months ago

Closing as stale