juanferreras
juanferreras
CDCloudflare Developers
Created by Hello, I’m Allie! on 1/16/2025 in #workers-for-platforms
You could probably go the Stackblitz
using https://developer.stackblitz.com/platform/api/javascript-sdk-vm#getfssnapshot you can embed an SDK with files you declare, run the build on changes like "start": "chokidar 'src/**/*.{js,ts,jsx,tsx}' -c 'pnpm run build' --debounce 1000 --initial", and then use await vm.getFsSnapshot() to get the contents of dist/**and upload that to the worker for platforms API (you can do much fancier things with the Web Container API but looks like you require licensing for commercial usage)
4 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 1/16/2025 in #workers-for-platforms
You could probably go the Stackblitz
No description
4 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 1/16/2025 in #workers-for-platforms
You could probably go the Stackblitz
Gotta admit that if somehow I can run wrangler deploy --dry-run --outdir dist – it'll be a much safer path to pursue
4 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 1/16/2025 in #workers-for-platforms
You could probably go the Stackblitz
hey HardlyWorkin! Thanks for the response. Initially I was going to use sandpack (codesandbox) – but typescript support and actually deploying to preview changes seemed to work pretty well (esp. to make sure what they build fit into how I intend to RPC to them via my dispatch worker) would you mind ellaborating on what'd be the stackblitz route? e.g. iframing/embeding their editor SDK and being able to get a built output programmatically?
4 replies
CDCloudflare Developers
Created by juanferreras on 12/3/2024 in #queues
I thought queues was not working
scheduling work to refresh stored data with an upstream API . A little wip side project, folks would add their domains and every day all domains get queued to ask Google's CrUX for the latest data (and get alerted if they've configured any alarms on any metrics) The queue seems to let me schedule ++thousands as a fire-and-forget, and lets me configure a cap on how many run at once to prevent 429s. So far, so good! This was before workflows were released but I think queue is perfect for it
2 replies
CDCloudflare Developers
Created by iamjoey.sol on 11/29/2024 in #next-on-pages
getting this error
13 replies