terenced
terenced
Explore posts from servers
SSolidJS
Created by terenced on 5/2/2024 in #support
Solid +Astro SSR + Data Fetching on hydration
Thank you @snailyluke! isServer and refetch work great! I needed to also Suspense in my component instead of Show/Match/Switch, but I think the code seems cleaner with the suspense. Thanks again! šŸ˜„
4 replies
CDCloudflare Developers
Created by terenced on 4/28/2024 in #workers-help
Do I need to store my environment variables in wrangler.toml?
Thank you
10 replies
CDCloudflare Developers
Created by terenced on 4/28/2024 in #workers-help
Do I need to store my environment variables in wrangler.toml?
it definitely can. I am just trying to understand how env vars work. It feels odd to me to have the env set in the code. I might as well just hardcode the value since I do not have multiple envs
10 replies
CDCloudflare Developers
Created by terenced on 4/28/2024 in #workers-help
Do I need to store my environment variables in wrangler.toml?
OK, so after every deploy, i would need to go an set the env var in the dashboard again?
10 replies
CDCloudflare Developers
Created by terenced on 4/28/2024 in #workers-help
Do I need to store my environment variables in wrangler.toml?
Initially, I did not have any env vars defined, but when I deployed, it cleared out the one I defined manually in the dashboard. It that expected?
10 replies
HHono
Created by Chicha on 4/19/2024 in #help
use Context to get vars from wrangler.toml
ah interesting, I didn't know that! Thank you @Nico šŸ˜„
11 replies
HHono
Created by Chicha on 4/19/2024 in #help
use Context to get vars from wrangler.toml
Hey! Iā€™m new to Hono, but think there might be some confusion around context and environment variables. Hono pass a context with each request and it should only contain info related to the request, like headers. In your wrangler.toml, you are setting environment variables, which are available wherever your code it running. Think of it like a global variable set by the environment. Have a look at https://developers.cloudflare.com/workers/configuration/environment-variables/ and https://hono.dev/api/context. I hope this helps (and that I am actually right šŸ˜Š)
11 replies