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 User13mo ago
Message Not Public
Sign In & Join Server To View
Jsx
Jsx13mo ago
Thank you so much. It works