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

I have a site hosted on fly.io. Can I somehow hide the hosted url in a subdomain on my Pages site?

I have a custom domain on a CF Pages app, and was wondering if I could alter the my DNS records or some Cloudflare tech (besides Redirects) so that my-domain.com/admin or admin.my-domain.com would render what is on the other host (https://bright-star-3498.fly.dev for instance).

How do I add view count to my website?

Cloudflare Pages, SvelteKit it is 😐

I added a custom domain 2 days ago to my CF Pages site, and my CNAME records have not propagated yet

I've been learning a new stack with deployment using Cloudflare Pages, and earlier this week I applied a custom domain so I could test out the MailChannel plugin. I bought my domain from Cloudflare, applied it to my Pages site, and it automatically created the zone and some DNS records. I created some more records for the plugin and have been troubleshooting the last couple days. I checked my DNS record propagation using https://dnschecker.org and it seems my CNAME record isn't detected yet. I also created 2 TXT records for MailChannel, and only 1 of them appears and seems to propagate really fast when updated. I also set up CF Email Routing which added some MX records and those also propagate nearly immediately. ...

Pages Help Needed !!!

any help pleas, it's beeing a week, still dont get what i missed.

SvelteKit build error: Node modules could not be resolved

Hi, I have a SvelteKit project with googleapis package installed. I tried deploying it to Pages with cloudflare adapter but the build failed with errors like the following: ``` The package "stream" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error. 06:47:24.269 error during build:...

Testing functions with unstable_dev

Is it possible to test functions with unstable_dev ? Is it only possible with using a _worker file or can i somehow build the separate functions into one locally to run unstable_dev on?

Internal error

Deployment ID: 5e1b343f-5a69-4e9a-bc2c-a6bd2bacf406 ``` 15:36:51.583 Validating asset output directory 15:36:52.269 Deploying your site to Cloudflare's global network... 15:36:53.614 Failed: an internal error occurred...

Password Protect Pages, not based on email?

Is there a way to set up Pages so that they're password protected by an actual password you can set. Right now have the access rules set up but they're a little confusing, and they won't send an email every time if you got one recently. Noticed theres a bit of an overlap with the previous code not working any longer and it not wanting to send another email. Used to just having staging protected by an htaccess passwd I could give clients to preview their staging. Is something similar possible or is the emailed PIN the only option?...

Change git integration user

Hello, We've set up GitLab integration with one of our pages (domain: futuclass-front.pages.dev). This integration and the page was setup by one of our organization users meaning in GitLab under their profile's Authorized Applications they have CloudFlare Pages. Due to changes we had to remove this user from CloudFlare. Note, this user had superadmin rights. This however meant that deployments for that page fail. When we add this user back (same email), the deployments again succeed. ...

Using pages plugin mailchannels giving error

I'm trying to use the pages plugin mailchannels to make use of a form on my website and get the responses emailed to me however when submitting the form, I get this error.

Cant upload zip file to assets page

it unzips, and when it goes to upload the whole website freezes, and i have to close the tab and reopen

Unable to write files during build

``` 12:59:30.925 > ls && node generate-content.js && astro build 12:59:30.925
12:59:30.939 README.md 12:59:30.939 assets...

Unknown Error when setting NODE_VERSION

I'm trying to getting the attached error when I try to set the node version environment variable on in my pages build config.

Error building pages Module build failed: UnhandledSchemeError: Reading from "node:crypto"

Hi team, I“m trying to move my NextJs app from Vercel to Pages and i“m getting several errors when building my application: Failed to compile. 12:58:58.301 ▲ node:crypto...

Wranglers Pages Dev is basically unusable

In locally testing a Next on Pages project, the documentation asks that you npx @cloudflare/next-on-pages --watch and in another terminal use wrangler pages dev .vercel/output/static --compatibility-flag=nodejs_compat. However, with this setup whenever you modify your Next project it triggers a rebuild, deleting _worker.js. Then, this file being deleted upsets wrangler and it exits. However, wrangler doesn't calmly exit - it leaves behind a process holding it's bind to :8788 meaning it cannot be restarted without running lsof -i 8778 and then killing the hanging process. Every. single. file change. I'm not sure how to use any other Cloudflare feature with Next on Pages because the thing giving me process bindings cannot be used without extreme babysitting. ...

Custom Domain failing for cloudflare pages

Hey pages team, I just posted on the forums (https://community.cloudflare.com/t/cloudflare-pages-doesnt-work-with-custom-domain-on-cloudflare/539980) but I imagine I might be able to get faster help here. My setup is: ...

pages functions package.json

I have a cloudflare pages application that is connected to gitlab and deploys when I push. In this repo is a ./functions directory that contains a _middleware.js file that proxies all http requests to a node.js api if the pathname starts with /api.
I would like to use the twilio npm package like it does in this example https://github.com/Ryandev/cloudflare-worker-twilio-sms ...

Trouble w/ relative images - Astro site on Pages

Hey all, I have been messing around with deploying my blog to Cloudflare Pages and the experience has been awesome! Except I'm having issues with relatively-referenced images like my favicon and a header PNG not loading. This is happening only on the Cloudflare Pages instance of the site. All other remote images, i.e. ones from my CDN, are working just fine. These resources are referenced relatively, i.e. /myfavicon.svg or /header-image.png and are placed in my Astro public folder so they're straight copied when the site is built....

Purging everything won't help, my changes still aren't syncing in my Team's website

I tried to purge a specific link first, it didn't work, now, trying purging everything, still didn't changing my Team's website, I turned on development mode, some of the changes that I previously have got reverted... - https://rfbstore-web-v4-host.pages.dev/ - idk how to find my deplyment ID - 276f571cbcc6716fd0c9ac753689ec84...

Error deploying nuxt

Hey everyone. I'm trying to deploy a nuxt app in Cloudflare Pages, but im getting the following error when running the build command: ``` [error] Cannot resolve "canvas" from "/opt/buildhome/repo/node_modules/.pnpm/[email protected]/node_modules/linkedom/commonjs/canvas.cjs" and externals are not allowed! at Object.resolveId (node_modules/.pnpm/[email protected]/node_modules/nitropack/dist/shared/nitro.7a525996.mjs:1781:17) at async PluginDriver.hookFirstAndGetPlugin (node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:25256:28)...