Accessing Environment Variable in router.ts

Hello I have configured my worker using create cloudflare and worker with route. I am able to access it in worker.ts but I want the access in the router.ts as there I am performing action. Please help me how can I access those env vars. I am using itty-router
2 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Jsx
JsxOP2y ago
Thank you so much. It works
Want results from more Discord servers?
Add your server