Magical.Puffin
Magical.Puffin
Explore posts from servers
DTDrizzle Team
Created by Jarrett on 8/25/2024 in #help
Migrating a local Cloudflare D1 database
Cloudflare D1 uses a local .sqlite file in .wrangler/state, one option is to just treat it like any other sqlite database and use better-sqlite3. The other option would be to use wrangler for managing all migrations.
3 replies
CDCloudflare Developers
Created by talkingarmor on 3/27/2024 in #workers-help
How to test multiple workers locally
I have been messing around with running workers using Lerna and it sort of works. There are issues when starting multiple workers in parallel so I have been using sleep statements as a workaround, "dev": "sleep 1 && wrangler dev. Edit: This was a port related issue, could just specify the local port for each worker and inspector-port https://github.com/cloudflare/workers-sdk/issues/1701 It seem like Cloudflare does recognize Lerna could be used with workers though... https://developers.cloudflare.com/workers/tutorials/manage-projects-with-lerna/
3 replies
CDCloudflare Developers
Created by Magical.Puffin on 4/6/2024 in #wrangler
nvm I figured it out after running
I am running npx wrangler pages deploy after the service binding is deployed. If the service binding isn't specified for the production environment, the page gets stuck in queued. I have a basic example for replicating this issue: https://github.com/magicalpuffin/public-debug/tree/main/2024/cloudflare-pages-service-binding
2 replies
CDCloudflare Developers
Created by Magical.Puffin on 4/5/2024 in #pages-help
SvelteKit service bindings in local development
I think I figured out the issue, I was trying to run using npx wrangler pages dev -- npm run dev which was deprecated today. https://github.com/cloudflare/cloudflare-docs/commit/1fe2be60c755f0747e5b804a9f21bd1b3d2d8b79
2 replies