Benedikt
Benedikt
CDCloudflare Developers
Created by Benedikt on 2/17/2024 in #workers-help
wrangler types command with secrets
I'm using the 'wrangler types' command to generate types for my bindings. Now, I have some secrets that I use in the app that I specify in .dev.vars (as recommended), but they of course don't get picked up by the wrangler command so my types are missing the env vars as strings that represent the secrets. Is there any way to solve this? e.g. should I specify empty vars in wrangler.toml to have them in the types or does this override the secrets then?
7 replies