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

cname record not working with page

i'm trying to link to one of my pages pages from a subdomain, so i made a cname record for https://test.jintra.nl to point towards https://play-6m3.pages.dev/ - however, i keep getting this 522 error, even though the page is hosted on cloudflate itself? any help is appreciated

I'm getting a 404 not found.

I created a new page with the git integration and everything seemed to work, iT connected to my git and it even says "11:24:39.658 Success: Your site was deployed!" in the build logs, but when i go to the website url generated from cloudflare i get a HTTP ERROR 404.

redirect to a self-host postgres server failed

Hello, I have a server at home on which I put a postgres16.6 container. So I created a subdomain for postgres. Create an application on Cloudflare....

SvelteKit deployment failing

Hi, i'm trying to deploy this app (https://github.com/Fabio53443/cogestione-mamiani) but i keep getting this error once the project is built. ``` 15:48:33.763 Run npm run preview to preview your production build locally. 15:48:33.763
15:48:33.763 > Using @sveltejs/adapter-cloudflare...

What are my publishing options?

Hello - leanring, so go easy on me if I ask something stupid 🙂 ... to publish via Page it looks like I have 3 options: 1 - Drag and drop (limited to 1000 files) 2 - Wrangler (allows more files so preferred option but I have no clue how to set it up and use) 3 - Connect to Github Repo (again think there are storage/file limits with this on Githubs side)...

301 Redirect Loop

I have a static website deployed on Cloudflare Pages that has been running without issues for months. About an hour ago, one of my stylesheets started returning a 301 redirect loop to itself, breaking the site’s styling. I just use pages deploy of a static folder together with this _redirects file: '/* /index.html 200' ...

Help me to run my older version on next js application in cloudflare #next.js

While I trying to export my successfully builded next js web application it throwing this error:
loazzne-nextjs@0.1.0 export set NODE_VERSION=16.7.0 && npx next export
info - Using webpack 5. Reason: Enabled by default https://nextjs.org/docs/messages/webpack5...

Does anyone know if there's a way to upload/deploy files when building a page project with terraform

I'm using cloudflare_pages_project to build my resources. Also, I'm not using the GIthub integration as I have a different workflow tied to Github actions for deployment using wrangler. But when I build the initial pages project in terraform, I'd like to upload a placeholder index.html file. Possible?...

Pages are currently broken. The default domain that's assigned is not working.

broken-bbf.pages.dev Deployment ID: aa60a120.broken-bbf.pages.dev Account ID: ba013add09863cda3764524bd9c5e4d6...

Cant Use nodejs modules with Astro and functions

hey guys, need help with a certain issue, node modules doesnt seem to work in my functions page For context the whole site is a blog site that is statically generated at build time, all the static paths work fine...

Env variables not being passed to deployment?

I have env variables defined in my project settings, but under each deployment it says "Environment variables: none", which is causing the builds to fail

Angular pages deployment with GitHub

Hi, I tried to deploy a basic angular website on pages from a GitHub repository with the interactive interface in the cloudflare website. The application was built perfectly without errors but when I accessed the page, it was just white with error 404. I visited this page https://developers.cloudflare.com/pages/framework-guides/deploy-an-angular-site/ and followed the instructions (I created a new project) deploying it with npx wrangler pages deploy dist/cloudflare and the page worked perfectly. I noticed that there were ssr and some server configurations on this project... I tried to push it to GitHub to deploy with the same process as my first project but the build didn't work. So, I'm stuck here... I just want to deploy a simple page without ssr or something....

How to use Queues with Pages

I see from the Cloudflare dashboard that pages can be bound to functions. Is not clear if this implies only production being possible or also consumption? If the second applies how can I go about it?

Monorepo Builds keep using npm instead of bun

As title says, I keep having the issue that the automatic builds correctly identify bun and it's version but proceed trying to install with npm. Can I somehow force Cloudflare Build to use bun over npm?...

Help with getting CORs policy to work with r2 and pages

I have a project deployed from GitHub onto cloudflare pages that has a button, takes the users microphone input, transcribes it, sends it to open ai , then OpenAI sends back an mp3 file that should be stored in r2 (if the file doesn’t already exist) , and is played back for the user. I have been ripping my hair out for ages with this, as it worked when the project was deployed to Vercel but now I’m getting a CORs error. I have no idea what else to try with the settings. Feels like I’ve tried everything. Can anyone help ? DM or comment below and I can send the info....

Expo Router App Assets not uploaded

My Expo Router app's assets folder is not being deployed Looking at the Pages build's "Assets uploaded", I can see everything except for the assets/node_modules/* directory and folders that has the built assets that their bundler has imported from the node_modules in the project (and is not the source of the node_modules themselves) This leads me to believe that Pages may potentially be filtering out any node_modules directories during its deployment? I think that makes sense as a default, but is there some way to configure this?...

Unable to access Speed --> Optimization --> Content page in dashboard

I'm trying to disable Rocker Loader but I cannot reach the page to disable this setting. Anybody else running into this?

Cannot find dist subdirectory when building subfolder in docs subdir

I have my documentation in the docs as a subfolder of my repo, rather than having a separate docs repo. I'm using a static astro docs site. On the cloudflare site under "Configure automatic builds and deployments", I tried using: Build output directory: /dist...

Pages install does not creates pages wrangler.toml

I have fixed, compiled assets for an SPA, but I need some server side routing to make sure we return index.html in certain cases (basically /prefix/:spa-page-name), and the static assets (css, js, wasm,...) otherwise. I'm following https://developers.cloudflare.com/pages/get-started/c3/ So I do npm create cloudflare@latest and pick hono, but I end up with main = "src/index.ts" in my wrangler.toml and then cloudflare won't deploy it because it needs pages_build_output_dir instead. ...

Deploying to Cloudflare’s global network fails with error

Deploying to Cloudflare’s global network fails with error: Error: Failed to publish your Function. Got error: Unknown internal error occurred. I need to keep retry deployment many times until it succeeds Does anyone have this issue before?...