delucis / astro-netlify-cms

Integration to add Netlify CMS’s admin dashboard to any Astro project
161 stars 21 forks source link

Undefined disableIdentityWidgetInjection causes script to be injected onto every page #60

Closed christiankozalla closed 1 year ago

christiankozalla commented 1 year ago

Hey there!

I've just noticed that a script page.<hash>.js is injected into every page when using this integration with the default config from the Astro Netlify CMS Starter.

I'm unsure whether this is the desired behavior. I've read that the identity widget is used if you're hosting the blog+cms on Netlify and do not use a git hosting provider such as github. So backend: git-gateway, hosted on Netlify without github et al.

Steps to reproduce

I'm opening this issue because I'm not sure if this is a bug or desired. Thank you!

delucis commented 1 year ago

Hey! Yes this is the expected behaviour. If you want to disable the injection for whatever reason, you can set disableIdentityWidgetInjection: true in the integration config object.