Replies: 1 comment
-
2025.02.03: I somehow recognized that the latest wrangler handles this properly.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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