We are building a site that has support for incoming webhooks (that are handled by a function) and Netlify CMS for content editing.
The issue now is that we need to pasword protect the site during the development, but if we use:
a) normal “Password Protection” -> the webhooks can’t get to the functions
b) Basic-Auth (defined in netlify.toml) -> Netlify CMS can’t access the /.netlify/identity
I’m currently trying to figure out if it is possible to use the basic auth (for = "/*) but somehow allow the /.netlify path. Any help with this would be appreciated.
Remember to activate Identity for this site, invite a user, assign them a role, and that should work beautifully. Unauthorized users
I haven’t tested this solution yet, but it should work fine, and I’ll be testing something similar in the next few days, so let me know if this doesn’t work, and I’ll get back to you after I figure it out.
I tried to set up the redirects like in your example, but it seems that those empty redirects are not allowed. I tried to deploy them in _redirects and in netlify.toml files, but both will result to failed build. Netlify's playground also says “target URL is missing”.
I agree that empty redirects won’t work (except for the Role rule). Have you tried just leaving those empty redirect rules out. Those shouldn’t be necessary.