You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Current situation
Currently
wrangler types
makes env vars type as concrete value. (using wrangler 3.62.0)For example, this configuration
will be:
Problem
When I want to set different values to each environment like,
it generates
and I can't compare the value in typescript code.
Suggestion
So
wrangler types
command should generate env vars type as string.Importance of the problem?
It is not quite a problem, because I can still manually change the type in
worker-configuration.d.ts
.But I think making env vars comparable is intuitive and just right.
Beta Was this translation helpful? Give feedback.
All reactions