ch3coohlink
CDCloudflare Developers
•Created by ch3coohlink on 1/9/2025 in #workers-help
The doc says: "any vars key are exposed as global variables", but they are not
and the dev command: wrangler dev --define $$IS_DEV$$:true
17 replies
CDCloudflare Developers
•Created by ch3coohlink on 1/9/2025 in #workers-help
The doc says: "any vars key are exposed as global variables", but they are not
17 replies
CDCloudflare Developers
•Created by ch3coohlink on 1/9/2025 in #workers-help
The doc says: "any vars key are exposed as global variables", but they are not
thanks, i changed the define format in wrangler.toml and it works
17 replies
CDCloudflare Developers
•Created by ch3coohlink on 1/9/2025 in #workers-help
The doc says: "any vars key are exposed as global variables", but they are not
thanks, I'll try
17 replies
CDCloudflare Developers
•Created by ch3coohlink on 1/9/2025 in #workers-help
The doc says: "any vars key are exposed as global variables", but they are not
tried the "define" option in wrangler, but it didn't substitute the target string in my main.ts. What's the target files this option tries to substitute? info missing in the doc. @Walshy | Workers/Pages
17 replies
CDCloudflare Developers
•Created by ch3coohlink on 1/9/2025 in #workers-help
The doc says: "any vars key are exposed as global variables", but they are not
seems no eazy way to detect dev mode in the init time
17 replies
CDCloudflare Developers
•Created by ch3coohlink on 1/9/2025 in #workers-help
The doc says: "any vars key are exposed as global variables", but they are not
my problem still remains though...
17 replies
CDCloudflare Developers
•Created by ch3coohlink on 1/9/2025 in #workers-help
The doc says: "any vars key are exposed as global variables", but they are not
i see
17 replies
CDCloudflare Developers
•Created by ch3coohlink on 1/9/2025 in #workers-help
The doc says: "any vars key are exposed as global variables", but they are not
I'm using different key than the example, and the env variable does not exist outside fetch function
17 replies