Is it safe to put my env variables during build time?

I have a next application that I am trying to deploy on cloudflare workers. Im confused about whether it is safe to put my env variables like DB_URL during build time
3 Replies
sithu
sithu2d ago
how?
Gab
Gab22h ago
At infra side, you can use -> cloudflare worker secrets -> https://developers.cloudflare.com/workers/configuration/secrets/ and, for a better secrets managment -> https://blog.cloudflare.com/secrets-store-beta/ but at your application side, depends on you to dont expose the credential/env at your code side
Cloudflare Docs
Secrets
Store sensitive information, like API keys and auth tokens, in your Worker.
The Cloudflare Blog
Introducing Cloudflare Secrets Store (Beta): secure your secrets, s...
Securely store, manage and deploy account level secrets to Cloudflare Workers through Cloudflare Secrets Store, available in beta – with role-based access control, audit logging and Wrangler support.
JdX
JdXOP19h ago
i didnt get you Thanks a lot!

Did you find this page helpful?