The Wayback Machine - https://web.archive.org/web/20220627175315/https://github.com/netlify/netlify-cms/discussions/6178
Skip to content

Is there a way to not put netlify-identity-widget.js somewhere other than the index? #6178

Unanswered
saturnonearth asked this question in Q&A
Is there a way to not put netlify-identity-widget.js somewhere other than the index? #6178
Feb 3, 2022 · 1 answers · 7 replies

I don't want to bloat up my index page when the CMS is only used by a handful of people. Is there a way to change the page it's on, or not use it at all?

Replies

1 suggested answer
·
7 replies

talves
Feb 3, 2022
Maintainer

You should be able to put it in your <cms-root>/index.html file right? I can't remember if it is required by Netlify to be in the root of the site or not.

If it is required to be in the root of the site, you do have the option to pull the cms out to it's own app and make it the root of it's own site. Maybe do some testing for the root of the cms app first and let us know how that goes.

7 replies
@saturnonearth

In the docs it says it needs to be a the site index, as well as the CMS index, sadly

@talves

talves Feb 4, 2022
Maintainer

I thought I read somewhere it does work. Maybe this will work as @erezrokah explained in this answer. https://answers.netlify.com/t/11ty-how-to-use-netlify-identity-widget-without-lost-of-performance/33175/3?u=talves

Nice explanation of why it uses the root path as a default.

@talves

Sorry for all the link digging to the setup ahead of time 😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants