wesbos
wesbos
Explore posts from servers
CDCloudflare Developers
Created by wesbos on 2/25/2025 in #workers-help
Cache Rules in front of worker
ah yeah, im using Waku so im hoping I can access that in the middlware. Will try. Thank you
9 replies
CDCloudflare Developers
Created by wesbos on 2/25/2025 in #workers-help
Cache Rules in front of worker
trying to cache the rendered output of a page - I am caching data with KV already but I want to just have the entire HTML page cached and not even make a worker request
9 replies
CDCloudflare Developers
Created by wesbos on 2/25/2025 in #workers-help
Cache Rules in front of worker
okay, so the only way to do it is via cache bindings?
9 replies
CDCloudflare Developers
Created by wesbos on 2/10/2025 in #workers-help
`Request entity is too large` when deploying a worker
thank you! Seems to be deplopying right now but My bundle in under 50mb right now. Gotta get those numbers back up 🤣
21 replies
CDCloudflare Developers
Created by wesbos on 2/10/2025 in #workers-help
`Request entity is too large` when deploying a worker
Ayeee thank you!
21 replies
CDCloudflare Developers
Created by wesbos on 2/12/2025 in #workflows-beta
Hi folks - having some trouble with
thank you - will give it a shot tomorrow
27 replies
CDCloudflare Developers
Created by wesbos on 2/12/2025 in #workflows-beta
Hi folks - having some trouble with
gotcha- thank you
27 replies
CDCloudflare Developers
Created by wesbos on 2/12/2025 in #workflows-beta
Hi folks - having some trouble with
Similar q: Are the step outputs available in prod as well? If so why is the output different when local?
27 replies
CDCloudflare Developers
Created by wesbos on 2/12/2025 in #workflows-beta
Hi folks - having some trouble with
sweet thanks!
27 replies
CDCloudflare Developers
Created by wesbos on 2/12/2025 in #workflows-beta
Hi folks - having some trouble with
no rush! Just poking around
27 replies
CDCloudflare Developers
Created by wesbos on 2/12/2025 in #workflows-beta
Hi folks - having some trouble with
same problem with the await.
export class MyWorkflow extends WorkflowEntrypoint<Env, Params> {
async run(event: WorkflowEvent<Params>, step: WorkflowStep) {
await step.do('Step 1', async () => { return 'Step 1 finished!'; });

await step.do('Step 2', {
retries: { limit: 2, delay: '1 second', backoff: 'linear', },
}, async () => {
console.log('Trying Step 2');
throw new NonRetryableError('Step 3 failed. Non-retryable');
});
}
}
export class MyWorkflow extends WorkflowEntrypoint<Env, Params> {
async run(event: WorkflowEvent<Params>, step: WorkflowStep) {
await step.do('Step 1', async () => { return 'Step 1 finished!'; });

await step.do('Step 2', {
retries: { limit: 2, delay: '1 second', backoff: 'linear', },
}, async () => {
console.log('Trying Step 2');
throw new NonRetryableError('Step 3 failed. Non-retryable');
});
}
}
27 replies
CDCloudflare Developers
Created by wesbos on 2/12/2025 in #workflows-beta
Hi folks - having some trouble with
oh let me try - I was using the default example but re-made this to distill it down. 1 sec
27 replies
CDCloudflare Developers
Created by wesbos on 2/12/2025 in #workflows-beta
Hi folks - having some trouble with
"wrangler": "^3.108.1" btw
27 replies
CDCloudflare Developers
Created by wesbos on 2/12/2025 in #workflows-beta
Hi folks - having some trouble with
No description
27 replies
CDCloudflare Developers
Created by wesbos on 2/10/2025 in #workers-help
`Request entity is too large` when deploying a worker
@Walshy | Workers/Pages any ideas here?
21 replies
CDCloudflare Developers
Created by wesbos on 2/10/2025 in #workers-help
`Request entity is too large` when deploying a worker
No description
21 replies
CDCloudflare Developers
Created by wesbos on 2/10/2025 in #workers-help
`Request entity is too large` when deploying a worker
@Walshy thank you!
21 replies
CDCloudflare Developers
Created by wesbos on 2/10/2025 in #workers-help
`Request entity is too large` when deploying a worker
If i deploy with wrangler deploy --minify it clocks in like this and uploads. Is there a 50mb limit not documented? Total Upload: 49692.29 KiB / gzip: 7303.47 KiB
21 replies
CDCloudflare Developers
Created by wesbos on 2/10/2025 in #workers-help
`Request entity is too large` when deploying a worker
Hrmm, it deploys when I disable image parsing (which causes lots of imports). The main handler file is still 35.2mb though Total Upload: 41462.99 KiB / gzip: 7095.99 KiB
21 replies