How to put environment variables in wrangler
# workers-help
a
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?
n
😆
c
You can’t access those variables in the global scope. You have to pass them from the request
a
@Cyb3r-Jok3 i got it, now it's working thank you very much