User
Write something
Long debugging session
I spend more than three days with an issue when trying to insert to a Cloudflare D1 database due to lack of understanding on how things work there. After trying a lot of things I'm documenting the break through here for future reference.
0
0
Long debugging session
Not code related errors
I spend three hours debugging and struggling because of the comment on line 13. I made that change yesterday thinking that it affected my deployment and it wasn't the case but today it created the previously mentioned situation. Be carefull because this are the worse kind of errors (not mentioned on tutorials). That's an example of how working on our own project can help us to get experience.
0
0
Not code related errors
Working on a cloudflare worker locally
There should be some config in wrangler.toml to work with a local database in an environment that is not production Execute this to run migrations: wrangler d1 migrations apply --local DB
Growth & Motivation
When stuck on a bug, I step away, take a walk, and come back with fresh eyes. Works every time.
0
0
Frontend and Backend deployed in different places
Question to ChatGPT: How to configure cors for a cloudflare worker to allow requests. Response: To configure CORS for a Cloudflare Worker, you must manually set the appropriate Access-Control-* headers in the Worker’s response. Cloudflare Workers don’t have built-in CORS settings—you control everything in code.
1-7 of 7
powered by
Citizen Developer
skool.com/citizen-developer-7163
For people that want to be programmers but hear and read everyday that AI is taking all the jobs and there is no chance for beginners.
Build your own community
Bring people together around your passion and get paid.
Powered by