Tin Cap
Tin Cap
CDCloudflare Developers
Created by Tin Cap on 3/29/2024 in #pages-help
Having trouble figuring out how to setup staging environment on Pages
I finally figured it out. I found the setup very confusing. I was looking at this documentation: https://developers.cloudflare.com/pages/how-to/custom-branch-aliases/ - It wasn't clear to me that I needed to get the alias of my preview branch, not the unique deploy URL - It wasn't clear that I had to setup the domain in Pages first, then go to the DNS settings to modify it to the preview alias. I tried setting it up in DNS directly and I got an error trying to access the site. - Ideally, the custom domain setup inside Pages should let me choose which deploy I want to use instead of requiring the extra step.
8 replies
CDCloudflare Developers
Created by Tin Cap on 3/29/2024 in #pages-help
Having trouble figuring out how to setup staging environment on Pages
Ooooh, they have aliases
8 replies
CDCloudflare Developers
Created by Tin Cap on 3/29/2024 in #pages-help
Having trouble figuring out how to setup staging environment on Pages
Based on the tutorials, I was expecting different URL structures, but this works
8 replies
CDCloudflare Developers
Created by Tin Cap on 3/29/2024 in #pages-help
Having trouble figuring out how to setup staging environment on Pages
Ok yeah. My production site is something like https://randomID1.project.pages.dev and my staging site is something like https://randomID2.project.pages.dev
8 replies
CDCloudflare Developers
Created by Tin Cap on 3/29/2024 in #pages-help
Having trouble figuring out how to setup staging environment on Pages
Wait, maybe it's not a commit SHA. Maybe it's just a random unique ID
8 replies
CDCloudflare Developers
Created by Tin Cap on 3/29/2024 in #pages-help
Having trouble figuring out how to setup staging environment on Pages
I'm getting something like <commitSHA>-master.project.pages.dev
8 replies
CDCloudflare Developers
Created by GGLVXD on 10/23/2023 in #workers-help
workers ai
You're querying the AI twice. Once with your query and once again with you are an chatbot to chat with user. You're outputting the result of your second query. Given this your results make sense.
4 replies
CDCloudflare Developers
Created by ASK on 10/18/2023 in #workers-help
KV giving null while doing get even though the key exists
Can you sanity check that by adding something in the KV web view and then trying to retrieve it in your code? I very much suspect there is an issue on your side somewhere.
22 replies
CDCloudflare Developers
Created by laralove on 10/16/2023 in #general-help
changing the domain of a site
Kind of weird but wouldn't require anything to get moved over
15 replies
CDCloudflare Developers
Created by laralove on 10/16/2023 in #general-help
changing the domain of a site
You could potentially keep things under biruny.com and CNAME lidnote.com to biruny.com
15 replies
CDCloudflare Developers
Created by AlexanderKaran on 10/14/2023 in #workers-help
Multi Workers For API - Use one worker as main router or use Cloudflare routes?
Option #1 will work, but double your invocations Is there a reason it's 15 separate workers? Can it just be one? If you're going to have multiple workers, can you just map them to different routes? "domain.com/api/one/*"
6 replies
CDCloudflare Developers
Created by albertski on 10/12/2023 in #workers-help
400 Bad Request from MailChannels
That's interesting. Does that vulnerability impact all domains on Cloudflare or just those using MailChannels?
4 replies
CDCloudflare Developers
Created by Yigal on 10/12/2023 in #workers-help
Worker routing refuse to work for one domain
Is my understanding of this issue correct? It sounds like using Cloudflare features for sites already on Cloudflare (like Bubble) is more difficult and requires a higher plan than sites not on Cloudflare. That seems counterintuitive to me, so I'm double checking.
14 replies
CDCloudflare Developers
Created by FCReddit on 10/12/2023 in #workers-help
Firebase Authentication with Workers
The Client SDK is designed to be used in a webpage. You authenticate a single user with their credentials, they stay logged in, operations are checked against access rules, etc. The Admin SDK is designed for server user. You authenticate with a Google Cloud service account. You can query all data and there no access rules. You might be able to get the Client SDK working, but the Admin SDK is the right thing to use. The Cloudflare worker runtime environment isn't a browser and it's a little weird compared to normal javascript runtimes in other ways, so I wouldn't be shocked of the Client SDK had some type of issues running in Cloudflare workers.
4 replies
CDCloudflare Developers
Created by lukee on 10/11/2023 in #workers-help
Detecting user region
Usually what people do for more detailed geolocation is using something like MaxMind.
6 replies
CDCloudflare Developers
Created by FCReddit on 10/12/2023 in #workers-help
Firebase Authentication with Workers
Looks like you're trying to use the Firebase client SDK. You should be using the Firebase Admin SDK in a worker.
4 replies