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
how?
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
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.
i didnt get you
Thanks a lot!