moonage.dev
moonage.dev
CDCloudflare Developers
Created by moonage.dev on 11/1/2023 in #workers-help
hono cron scheduler halp
Know hono is a 3rd party lib, but used for alot of cf things so thought someone might have an answer here. I using browser rendering api in a worker and want to set it on a cron, have the cron in the wrangler.toml Im just not sure how to use the scheduled handler with hono, any help appriciated ❤️
1 replies
CDCloudflare Developers
Created by moonage.dev on 5/30/2023 in #pages-help
Qwik .dev.vars (bindings) with CF pages help
Hi there, I'm using qwik and an openai key in my app. From the docs, for bindings, the cf and qwik docs differ slightly (just fyi) https://developers.cloudflare.com/pages/framework-guides/deploy-a-qwik-site/#use-bindings-in-your-qwik-application vs https://qwik.builder.io/docs/deployments/cloudflare-pages/#context note the .env The actual issue is when serving locally, normally with wrangler I would use .dev.vars. But with vite, im not really sure how you could serve the qwik app and access the .dev.vars, basically saturating the platform.env. Might be more of a qwik specific issue but worth a ask
1 replies
CDCloudflare Developers
Created by moonage.dev on 1/25/2023 in #workers-help
worker site wrangler config diff bucket per env
Is it possible to have different bucket for a env in wrangler.toml?
3 replies
CDCloudflare Developers
Created by moonage.dev on 1/24/2023 in #workers-help
Worker talking to worker service with itty-router
I'm trying to get worker-a to talk to worker-b service, the worker-b service is deployed and I'm serving up the worker-a via wrangler dev From worker-a:
...
router.get('/apps', async(request, env) => {
return await env.API.fetch(request.clone())
})
...
router.get('/apps', async(request, env) => {
return await env.API.fetch(request.clone())
})
From worker-b service:
router.get('/apps', async(request, env) => {
return new Response('Hello')
})
router.get('/apps', async(request, env) => {
return new Response('Hello')
})
But I just get
internal error {
stack: Error: internal error,
message: internal error
}
internal error {
stack: Error: internal error,
message: internal error
}
Is there a way to point to my local served worker service to debug what's going wrong?
10 replies