cloudflare-pages-auth
cloudflare-pages-auth copied to clipboard
Hugo site problem
Hi, thanks for making this. This is exactly what I was looking for, but I can't make it work. I copied functions folder into root of my site and uploaded zip to cloudflare. I added CFP_PASSWORD into pages environment variable. I tried encrypted an clear text passwords. I tried every posible combination i could think of but I simply can not get login page on my site. Can you give me any hint what else I can try.Thanks.
After 2 days I found out that i need to use wrangler to upload project with functions folder. Stupid me. Anyway is there option to use authentication on one or two pages? Because now i need to exclude all pages and leave only one. And how can I exclude root page?