if you're using Pages Functions, have to do in the dashboard: https://developers.cloudflare.com/page

if you're using Pages Functions, have to do in the dashboard: https://developers.cloudflare.com/pages/functions/bindings/#secrets
What you did is add it to some worker, probably the one you were mentioning trying before
Cloudflare Docs
A binding enables your Pages Functions to interact with resources on the Cloudflare developer platform. Use bindings to integrate your Pages Functions
Was this page helpful?