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

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?...

Environment-specific Cloudflare Settings

I'm using Next.js 14 (CSR) and backend deployed on a separate EC2 server. What's the best way to proceed with environment-specific deployments? I have 3 git branches: development, staging, production. Currently app's running on Vercel, meanwhile I'm working in a separate branch to shift to Cloudflare. On push to each branch, first fetch environment variables from Doppler into a .env file. Also, automate dependencies, build, deploy process in the same git workflow. Ideal flow is to have one app on cloudflare pages: web-app and under that each environment's configuration and dns settings so i don't have to change those again and again. Is this possible?...

Web with worker routing issue

More of a question on if its possible. I have a website (HTML) listed below that the Script section I want to do a fetch a worker that calls Neon Database (\functions\queryneon.js or even in \functions\api\queryneon.js) when i do a fetch request it returns the root html not the worker function results. (As seen in attached image. Page :toffwebcf.pages.dev Account ID: 5278ccba91db0703bae918390a60be28 For testing I built another Worker separate from the Website at toffdb.lordiconx.workers.dev and the code works there but i cant do a fetch from the main website to this worker or i get CORS issue. ...

Create a deploy webhook and enable web analytics using API

Hi, I'm creating and deploying a Pages project using the API, and I would like to know if there is a way to set up the deploy webhook and/or enable web analytics from within the request body. Docs are pretty scarce on that. I even had to go on the web to find out how to do the GitHub auth thing since there is no mention of it. Cheers....

I need help for noindex and nofollow

How do I fix my site being set to "noindex, nofollow" on Cloudflare even though I want it to be indexed by search engines? On my end, I have all pages indexed and followed while when I deploy it it says noindex, nofollow.

The project domain name of Pages does not have an SSL certificate issued.

My Pages project domain has not had an SSL certificate issued. I added my own custom domain, but there has still been no SSL certificate. The browser indicates a security risk. May I ask if this is an isolated incident? I would appreciate a response from the Cloudflare Pages developers. Thank you. My pages.dev: https://doh-proxy-96c.pages.dev/ My deployment ID: Your account ID: Any error you get:My Pages project domain has not had an SSL certificate issued....

Cloudflare & Sveltekit issue: when refresh a dynamic page throws 500 Internal error

I have created a small restaurant menu application. Deployed on CLOUDFLARE and using POCKETBASE for data storage. For the first time visit there is no problem. But when I refresh the page it throws a 500 Internal Error. Does anyone face this issue? and if you know please help me to solve the issue. Thank you! Here is the link: https://restro-public.pages.dev/zsh67hbt8rig8o7...

Recommended Project structure for Pages + Durable Objects + ..

So im currently running into the issue that i cant really get sveltekit + durable objects up. I used the cf starter cli for sveltekit that worked all fine. but as soon as i add the do binding and run dev again i get no response. I have a DoClass exported somewhere in my project but i feel like its just wrong. ...

Previous build now become failed

I tried to repeat a previously successful deployment but it failed, has anyone experienced something similar? ``` 00:47:34.309 5:47:34 PM [vite] (ssr) Error when evaluating SSR module /opt/buildhome/repo/astro.config.ts: 00:47:34.309 |- Error [ERR_REQUIRE_ESM]: require() of ES Module /opt/buildhome/repo/node_modules/.pnpm/readdirp@4.1.0/node_modules/readdirp/index.js from /opt/buildhome/repo/node_modules/.pnpm/chokidar@4.0.3/node_modules/chokidar/index.js not supported....

Website suddenly not found

Hello guys, is there someone have the same issues like me? So basically I have website on Pages using nextjs, its was fine running without problem, but suddenly the website down, when I check its says No webpage was found for the web address - HTTP Error 404, I didn't change any config or anything. I also tried to redeploy but still same. Site: https://gs-frontend-dd4.pages.dev...

Domains ⚠⚠⚠⚠

If i added 2 or 3 domains to Cloudflare do they all have 250DNS Records limits like Each Domain can make 250/3=dns records or each domain have 250DNS Records?...

Preview environment unable to connect to service binding?

I have a pages project with a service binding to a different worker. That binding works for the production environment of my pages project, but I get ctx.runtime.env.MY_BINDING.myRpc is not a function in the preview env, even though both are bound in the dashboard

I need to be able to as fast as possible make my subdomain on pages available. Is it possible to get

After the buildstep finish I need to get the subdomain on pages reachable within 10-15 seconds. Is this possible to solve somehow? Does it differ between using my own domain and cloudflares allocated subdomains?

My Website is Not a Phishing Site

Dear Support Team, I am writing to request a review of my website, which has been flagged as a "suspected phishing site." I want to assure you that my website does not host any phishing content or malicious activities. Details:...

Suspected phishing

Hello, i have a problem with my site, there is a "error" "Suspected phishing and i dont know how to solve that. i made a tiket to clouflare yesterday, but no help for the moment and i lost some client because of that!

Cloudflare ZT Tunnel issue

Currently using cloudflare pages to host my website, but one of the scripts I have is an iframe hosting a chat link. it seems to work fine in the testing environment on vscode and on the livechat link itself, but Google Chrome refuses to display it for setting 'X-Frame-Options' to 'sameorigin' Any help would be appreciated.

Cloudflare SSL Termination with Nginx - "Upgrade Required" and CORS Issues on HTTPS Requests

I am setting up an application with the following architecture: Frontend (React): Sends HTTPS API requests to the backend through the Nginx reverse proxy. Backend (Express.js): Handles API requests directly at http://backend-server:8080/. NGINX: Acts as a reverse proxy, routing traffic from https://api.example.com to the backend....

Turnstile protected form on an Astro website hosted on Pages, TS backend on Functions

Hello, I'm building an Astro test site and I would like to have everything "running" on Cloudflare. One of the things I want to demo is a simple form protected by Turnstile. I have no issue with the front-end code which is working fine. When I click on "submit" I'm calling xxx/api/submit, on my project I have a TS script in root/functions/api/submit.ts. I have no error when I'm comitting my code, the functions folder is detected by Pages, but while I'm doing my test and clicking on "submit" on my form I always have a 405 error. I noticed in pages/functions real-time log that I have a double '/' in the path ... that could explain the 405, but on the browser side I don't have the double '/' (see screenshot attached) ...

SvelteKit private environment variables not exported.

Hello! During when my project is being built, I get errors like this:
src/lib/file.ts (1:9): "PRIVATE_ENVIRONMEN_VARIABLE" is not exported by "virtual:$env/static/private", imported by "src/lib/file.ts"
src/lib/file.ts (1:9): "PRIVATE_ENVIRONMEN_VARIABLE" is not exported by "virtual:$env/static/private", imported by "src/lib/file.ts"
My sveltekit project builds fine locally, maybe because I actually have a .env file. On CF Pages, I set the environment variables in the settings to the same as my local, but it looks like it's not able to find them during the build. I've looked around I saw that people have put the environment variables file into their github repo, but I wanted to ask here if there was another solution. I'm currently don't have an .env in my repo....