Passing env variables when deploying page application with wrangler

Hello, Is there a way to pass environment variables when deploying with "wrangler pages deploy" ? I tried creating a wrangler.toml and configured the vars there as in Workers docs, but it seemns that it doesn't work.
4 Replies
Hello, I’m Allie!
Nope. All Environment variables must be in the Dashboard on deploy
Andi
Andi9mo ago
can they at lest be modified by api? or any solution without manually entering them in the dashboard?
Hello, I’m Allie!
Maybe? This API Route might work, but the documentation for the body is here
Cloudflare API Documentation
Interact with Cloudflare's products and services via the Cloudflare API
Cloudflare API Documentation
Interact with Cloudflare's products and services via the Cloudflare API
Andi
Andi9mo ago
thank you
Want results from more Discord servers?
Add your server