Set the deployed Worker token:
npx wrangler secret put PROXY_TOKEN --config wrangler.jsonc --name nilproxy
npx wrangler deploy --config wrangler.jsonc --name nilproxyEnter the same token in the page password box.
Check that Cloudflare has the secret:
npm run secret:listAfter deploy, visit:
https://YOUR-WORKER-URL/status
It should show:
{"worker":"nilproxy","hasProxyToken":true}Create .dev.vars next to wrangler.jsonc:
PROXY_TOKEN=your-token-hereThen run:
npm run dev