
久しぶりに新しいサイトにNetlifyCMSを導入した時に少し躓いたのでメモ。
## NetlifyIdentity
### エラー: Unable to access identity settings. When using git-gateway backend make sure to enable Identity service and Git Gateway.

### 解決法

上のタブから移動して、Identityを有効に。
“`html
https://app.netlify.com/sites/サイトID/identity
“`
## GitGateway
### エラー: Your Git Gateway backend is not returning valid settings. Please make sure it is enabled.

### 解決法

上のタブからSite settingsに移動して、Git Gatewayを有効に。
“`html
https://app.netlify.com/sites/サイトID/settings/identity#services
“`
***
あと、Githubのブランチのデフォルトが`main`になったので、公式のドキュメントに載っている`config.toml`から修正が必要。
#### config.toml
“`yaml
backend:
name: git-gateway
branch: main #[master]から変更
“`