Building Loomify: Deployments and API Integrations
I have spent my waking hours trying to figure out how to solve my issues in deployment. I've mentioned before that I've been using Cloudflare Workers to host our app. There are features that I like that make me choose this over Vercel and Netlify such as the preview URL that doesn't look weird, deploying just a folder (so I can maintain the folder structure as a monorepo), and easily adding in domains for specific workers.
While working on this demo, I've hit walls that I didn't think I could overcome. The thing about Cloudflare is that it's good a distribution in the internet (like how files would load faster). A thing I didn't anticipate was how Cloudflare was caching my builds making me often wonder why hasn't a certain functionality was working.
It was particularly difficult to catch what was wrong because it turns out it was issues on configuration. An example of this is how Cloudflare doesn't really have much compatibility with bun so I had to use npm instead in the build settings.
My next task came when I had to configure the authentication with the Facebook login. This was particularly tricky for me because I vibe-coded the demo. This meant that I'm facing problems with AI using old versions of API documentation. I vibe-coded most of the demo because it takes too much work and time for me to figure out the scaffold of the app from components to types.
TLDR;
- Cloudflare kinda drove me crazy so I'm working on localhost until then I fix how I deploy things
- AI IDEs are so bad on keeping up with the latest documentation, but I made it work (for now).