ยท 1 day agoยท Dev.to
How I rotate Sanity draft mode secrets at the edge without redeploying Next.js
Sanity draft mode preview on Next.js App Router works fine when your secret is baked into an environment variable โ until a client accidentally pastes the preview URL into a Slack channel and you have to redeploy to rotate it. Vercel Edge Config solves that: you update a single key in the dashboard
#cloud#nextjs#secrets-management#devops