Cloudflare Developers

CD

Cloudflare Developers

Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news

Join

Accessing KV bind on Vue Script from import.meta

Hi all, been digging a while and haven't found something close. I've bounded the KV with namespace kv and tried to make use of it between Vue components script part like: await import.meta.kv.get('key') both preview and production say can not read get of undefined. Wouldn't this be the way to interact with kv ?...

Configure Cloudflare domain to point to a Pages project

Hi, I just bought a domain name on Cloudflare and went through the guided setup to point it to a newly creates Pages project. Yet, when I use that domain to go there, it doesn't work and I cannot figure out any error at all. The domain is : maisquelleid.com The Pages project is currently at: https://maisquelleidee.pages.dev/ All I did was follow the wizard in the Portal i.e. click on "Add Pages Site" from within the registered domain's config page (See screenshot)...
No description

Stuck in building and deploying

My project is stuck in building and deploying, because my index.js has a setTimeout (in scheduleRefresh) that repeats once per day. How do I tell the build function to not get stuck here?
No description

AdapterError when login

I got adapter error when login using next-auth@beta. Error: PrismaClientKnownRequestError: \nInvalid prisma.account.findUnique() invocation:\n\n\nCannot fetch data from service:\nReflect.get called on non-object\n....

Add free subdomain from Freedns.afraid.org to Cloudflare

First of all, i'm nowhere near an expert (Never used cloudflare before). I want to expose my application through a cloud flare reverse proxy. I want to use a free subdomain from freedns.afraid.org. How would i approach this, is this even possible? (From what i can see i can enter a NS entry for the subdomain in the FreeDNS web interface) Thanks in advance...

Error during build time in cloudflare page

HI folks, anyone had this issues before? i try to deploy my webapp and i got this error today, previously it was working ok. i'm using sveltekit ...
No description

Sveltekit actions on pages with smart placement

Hello, I host sveltekit on cf pages pro and have smart placement enabled but cf-placement header is always local-X so placement is not working. Wondering if sveltekit actions are not meant to work with smart placement or if there are any other work arounds? Because my backend is in EU I would like my actions to run on EU for optimal latency when possible thanks in advance!...

Unable to add a custom domain

I'm trying to add a custom domain for my Pages project but it says inactive even though my CNAME record has propagated. I checked the network tab and I see an error that says -
SSL Validation encountered the following errors: CAA records block issuance. Please remove all CAA records or add records for this authority (pki.goog)
SSL Validation encountered the following errors: CAA records block issuance. Please remove all CAA records or add records for this authority (pki.goog)
...

jest and Response

I'm using Jest to write tests a Functions app I'm writing. How do I get the Response text?...

CF Access OTP Request Form language

Hi folks! I have a Pages subdomain behind CF Access, we use Login codes sent by email to prevent unauthorized access. Is there a way to replace both email and Login code request form language from English to another language? My audience is made of Portuguese speakers.

Branch name preview aliases not being created

Hi! I'm running a github actions CI pipeline to create cloudflare preview deployments for every pull request using https://github.com/cloudflare/pages-action. https://developers.cloudflare.com/pages/configuration/preview-deployments/#preview-aliases mentions that preview aliases should be created automatically with the format <branch>.<project>.pages.dev. However I'm not seeing any preview aliases being created except for head.<project>.pages.dev. Otherwise the preview deployments are working fine and are accessible at <hash>.<project>.pages.dev. Could anyone help me figure out why the branch name preview aliases are not being created?...

Is there any edge sub-dependency problem work-around?

I have been using Cloudflare Pages for my deployments, sometimes Vercel depending on the project, but I haven't self-hosted anything for a while now. For my current Nuxt project, I rely on MongoDB as a database, but MongoDB doesn't seem to be Edge-compatible due to some dependencies. Deployments are therefore not running on Edge, but I would hate to develop the project without Cloudflare Pages. Apart from small projects like https://github.com/drivly/mongo-fetch, are there any other workarounds...

Deployment notification timestamps

Is there a "bug" in the pages deployment notifications? I get the same timestamp for a EVENT_DEPLOYMENT_STARTED and the following EVENT_DEPLOYMENT_SUCCESS I don't see how that should be possible given that it takes between 10-60 seconds when it runs....

Can't import modules from ['/src/index.tsx','/app/server.ts']

I have a cloudflare pages project that deploys a honojs api, but when I deploy it, after the build has succeeded and the assets have been uploaded, I get this error:
Error: Failed to publish your Function. Got error: Uncaught Error: Can't import modules from ['/src/index.tsx','/app/server.ts']
at functionsWorker-0.6801182622647344.js:958:9
Error: Failed to publish your Function. Got error: Uncaught Error: Can't import modules from ['/src/index.tsx','/app/server.ts']
at functionsWorker-0.6801182622647344.js:958:9
...

Cloudflare pages access plugin for local

When running with wrangler dev for my functions, the cloudflareAccessPlugin stops the redirect back to the local wrangler server from working correctly. Is there a way to fix that redirect (it sends me back to https://127.0.0.1 eating the port and screwing up the protocol)? If not, what is the magical incantation to conditionally exclude that cloudflareAccessPlugin? The docs have something like this: ``` export const onRequest: PagesFunction<Env> = cloudflareAccessPlugin({...
No description

Need Help Cancelling Subscription: No 'Action' Options Found

Hello, I would like to cancel my subscription, but I don't see any options under 'action.' Can you please help me find a way to cancel it? Thank you.
No description

cloudflare pages

Hello everyone, I have a custom domain linked to Cloudflare Pages using a CNAME record. Is it possible to override the SSL certificate for this custom domain? I'm looking to use a custom SSL certificate instead of the default Cloudflare SSL certificate. Any guidance on how to achieve this would be greatly appreciated. thanks...

how to add durable object to Pages project?

I signed up for Cloudflare Workers Paid, and even logged out and back in, and redeployed by Pages project. Based on these docs (https://developers.cloudflare.com/pages/functions/bindings/#durable-object-namespaces), I expect to see an "Add binding" button for Durable Objects, but it's not there (see screenshot). I also tried adding a wrangler.toml with:...
No description

Does Cloudflare Pages provide a CDN for files using custom domain?

Pretty much title. I want to upload a file to my domain and have a subdirectory of the file hosted on my domain.