How to put environment variables in wrangler

Hi Guys I'm very new in cloudflare ecosystem, i just build sveltekit website and deploy it in cloudflare pages and so far it is working perfectly with supabase as a backend. recently i also have a needs where i need to make a rest api, and i try to use hono js and deploy it in cloudflare workers. the questions is how i can put environment variables in my projects? and how i can access it in my index.ts?
No description
3 Replies
Not yours
Not yours•11mo ago
😆
Cyb3r-Jak3
Cyb3r-Jak3•11mo ago
You can’t access those variables in the global scope. You have to pass them from the request
alka_99
alka_99OP•11mo ago
@Cyb3r-Jok3 i got it, now it's working thank you very much
Want results from more Discord servers?
Add your server