Drogbata
Drogbata
Explore posts from servers
CDCloudflare Developers
Created by Drogbata on 4/3/2024 in #workers-help
Deploy by push
Hello is it possible to deploy changes with git push like it's on vercel for my worker? or i have manully do it myself?
3 replies
CDCloudflare Developers
Created by Drogbata on 4/2/2024 in #general-help
env variables are empty - Hono
Hello can you help me with some small example how to work locally with env variables? I tried c.env.API_KEY i tried env(c) i tried env(c, "workerd") each combo with .dev.vars and wrangler.toml vars Every time when wranger dev it says (wrangler.toml) Your worker has access to the following bindings: - Vars: - COOKIE_SECRET: "secret" - AUTH_URL: "https://auth-dev.service.com/" or (.dev.vars) Using vars defined in .dev.vars Your worker has access to the following bindings: - Vars: - COOKIE_SECRET: "(hidden)" - AUTH_URL: "(hidden)" using wrangler dev, wrangler dev --local or i turned on remote mode. Same result everytime which is empty object / undefined variable when i console log it. Any tips? checked github and hono docs. Seems like I am missing something really trivial. How are you using hono locally with env vars? Seems weird that it says Your worker has access to the following bindings but there is nothing :/
31 replies
CDCloudflare Developers
Created by Drogbata on 2/24/2024 in #general-help
Subdomain for Worker
can i use my custom subdomain which is not registered with cloudflare and i do not want to transfer it?
2 replies