How do I set secrets and environment variables for specific environments in the Workers dashboard?

I'm currently migrating a Pages project to Workers, and I'm unsure how to configure secrets or environment variables for specific environments—like production or preview—within the Workers dashboard.

In the Pages settings, there's a "Choose environment" dropdown that makes this straightforward, but I can't find a similar option in the Workers settings.
Was this page helpful?