Cloudflare worker to CMS API V1 not working 😭
Hey Web Bae, I put together a Loom explaining the issue I am having and where I am stuck. I feel like I am so close to getting this to work!
The goal is to make a task submission app for clients with low latency on the tasks actually showing up on page.
Loom: https://www.loom.com/share/f7d73f86ce794321a1f2f1d8e0a9630a?sid=2cc7f955-4b14-40fd-a6bb-d287467a2b92
Code: https://coda.io/d/_d-ysCn5ESH4/Task-List-APP_su38Y
Read-Only: https://preview.webflow.com/preview/task-list-test?utm_medium=preview_link&utm_source=designer&utm_content=task-list-test&preview=ad2e26d5d2671b574527df9c57e93676&pageId=650ced873ce1729e6e2b13e9&workflow=preview
ChatGPT Thread: https://chat.openai.com/share/2defb0c4-9054-4c7f-8f4c-6e26e943ccc3
Loom
Webflow CMS Integration: Improving User Experience
In this video, I explain the current state of our Webflow CMS integration and the issues we are facing with the task submission process. I demonstrate how the form submission triggers a refresh of the CMS list, but it takes three seconds to capture the newest item, resulting in a poor user experience. I then introduce the Cloudflare worker scrip...
ChatGPT
ChatGPT
4 Replies
Cool man - I didn’t look at the code yet main question is what is your backend here? Is it a requirement to use Webflow CMS as your backend?
Is it an option to just use Cloudflare D1 or key/value as your backend for these? Should be wayyyyyy faster
Totally didn't see your response. Webflow CMS is not essential. Speed would be a cool thing to go for. I would love to learn how to use a more "real" database. So happy for you to show CF D1. I did switch to the V2 API and got it working but keep getting validation errors to get every field in the CMS. The second goal after get a database going would to be able to sync these task to a Coda table or maybe Airtable. Or I could also create an admin view and go all out with the web app. Open to solutions.
That Coda link now has the V2 code just for reference
OK cool. i haven't done much scripting in Airtable but not sure you would want to use that and D1. A big thing for me when designing web apps is making sure to have only 1 source of truth (database). D1 is great because speed but it dosn't have the best UI for editing items or a dashboard that you could share with a client. Airtable is great because you can create the admin views etc. but now you have bought yourself into less speed since you'd need a middleware to talk to it from webflow. Lots of tradeoffs.
If a super speedy web app is your #1 priority then you are maybe looking at branching out of the nocode realm.
Depends on priorities but let's explore some stuff :).
I'm not sure about pulling data from D1 into airtable with scripts. It's probably possible I just haven't done much with that!
Let's go for speed with D1 and get me a little experience in the dev world. I am using Memberstack for Auth. We can do an admin view with a extra attribute from them and sync the database to multiple webflow pages.
Recap the stack:
-Webflow
-Memberstack
-Cloudflare workers/server-side JS
-D1 database
-Client side JS
-client and admin task views