How to apply/trigger Deployment Protection only for Preview Deployments?
I have a project deployed that uses a free tier API with limited calls per day and I have currently disabled it during production. I set up NextAuth via GitHub and would be able to protect one domain - my production domain with that. I am currently using that only in my local dev environment and you have to successfully login with a GitHub account or credentials.
I applied Deployment Protection in my project settings through the dashboard, as documentation advises no other changes within the code for it to apply only to the Preview Deployments, but even with documentation I am not certain that I understand it correctly. I set it to "Only Preview Deployments" but both Preview Deployments are still publicly accessible (tested by opening them in a private browser)
Deployment URL or Custom Domain: https://drone-forecast.vercel.app/Environment preview: https://drone-forecast-f7hhq2xyh-siggis-projects-e42551a4.vercel.app/Project Framework: Nextjs 14.2.17Build Settings: Framework Preset: Build Command (if not default): Output Directory (if not default): Install Command (if not default):Node/Runtime Version: 10.9.0Package Manager: npmRelevant Packages: next-auth: 4.24.10