decaporg / decap-cms

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

fix(backend): allow a custom API root for backend #7214

Open JbIPS opened 1 month ago

JbIPS commented 1 month ago

In case of a self-hosted Gitlab, the API request to get the default branch always call gitlab.com. This commit allow to pass a custom API root from the config to the API call.

Fixes #7168

martinjagodic commented 4 days ago

@JbIPS could you add this new setting to docs also? the best way is to submit a PR here: https://github.com/decaporg/decap-website