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

Error: Input required and not supplied: apiToken

```yaml name: Cloudflare Pages Deployment on: [push, pull_request] ...

turnstile - captcha verification process failed

Hi, I'm getting this error when trying to sign in in my SvelteKit + Supabase app ```Sign-in failure: Object { type: "failure", status: 400, data: {…} } ​...

tunnel error: SSL_ERROR_INTERNAL_ERROR_ALERT

stackunderflow.online tunnel_ID:20dcf983-a325-4beb-83ec-591f02ebb8bd tunnel is from vs code (port:3000) to domain when i visit the domain i get the error:SSL_ERROR_INTERNAL_ERROR_ALERT...

Requesting Assistance With SSL/TLS Error, Site Not Being Served Over SSL

rainbowforge.pages.dev (deployed at domain rainbowforge.dev) is my portfolio website. Recently I was notified by a potential client that they were unable to access my website because their browser is giving them an "This site can't provide a secure connection" error. I just heard back that they are able to access my site at rainbowforge.pages.dev, but not at rainbowforge.dev. I've not seen any issues myself on any of the various privacy focused browsers I use, but they sent me a screenshot of their browser, they're on the most recent version of google chrome (which I even bloody downloaded to check, and still couldn't reproduce the error myself), saying "rainbowforge.dev sent an invalid response | ERR_SSL_Protocol_Error" (screenshot sent by potential client included). After receiving this email, I looked around in the dashboard and found that my website is being served to between 5-15% of visitors with no SSL. I'm unsure as to why this is, or how to fix it. If anyone has any advice for me, I'd really appreciate it! Steps I've taken already: I enabled automatic HTTPS redirects through the universal SSL dashboard. I'm not sure if turning on HSTS would help or make things worse in this scenario....

My Astro.js deployment fails

In the last step of the build process my deployment fails. I get this error message: Error: Failed to publish assets. For support, join our Discord (https://discord.gg/cloudflaredev) or create a ticket and reference the deployment ID: fee83b3e-3b70-46c7-b940-70d5c80be54e...

CLOUDFLARE_ACCOUNT_ID available in production but not in preview?

I don't have this configured anywhere but it seems to work in production but not in preview

Import mustache templates in Function

Hi everyone! I'm relatively new in Pages/Functions. I'm trying to import some mustache templates in my Function like so: ``` ...

Fetch 200 but response body empty

Sometimes when making a request, the request body is working fine and sometimes the body is empty. I know my api is fine because i tested it a lot with postman I found that if I put req.clone and await clone.text() the response body always returns even though I am not doing anything with the clone I just added that code...

Unable to use AWS Route53 CNAME custom domain

I have a CF pages project with a custom domain added i.e. foo.example.com. The domain example.com is set up with AWS nameservers, and it is not possible (powers that be) to migrate to CF DNS. So I set up a CNAME for the foo subdomain with the value of my pages project URL. However, it never passes through the DNS initialisation on CF. (Please note values have been obscured, if you require genuine values please ask and i will DM.) ...

error 525

Hello all I need help on this issue

Deploying Page Functions with Wrangler

When deploying using wrangler, instead of the Git integration, my Page Functions do not get detected I am using the following Github Action ```...

.env vs wrangler.toml (or .dev.vars)

do you duplicate secrets in both of these ? ex: say for account-id or api-token is in dev.vars (for cloudflare) and also in .env for drizzle

404 error when adding Cloudflare Pages to my GitHub account?

Hi, I am trying to connect Cloudflare Pages to my GitHub, but when I click to connect it loads the GitHub page but with a 404 state. However, if I am logged in using another account I have for GitHub it works well - what can be causing this account from not opening the App to grant permission, etc?

Problem with local dev setup

Hi everyone, I developing a vite/react project and using page functions for some serverside logic. My problem is that the TS code in ./functions folder does not automatically get updated so I have to restart wrangler every time. If possible I would prefer automatic update without need to restart wrangler. Any ideas on how to get this to work? "dev": "wrangler pages dev --port=3006 -- npx vite --host",...

Rename GitHub Repository

What is the current status with regards to renaming GitHub repository? Do I still need to recreate the Pages App?

Is there a way to map specific paths to a worker?

I just started using CloudFlare pages and I have a couple of files that are too large (> 25mb). I have placed these files in R2. I am trying to create a pages fuction to pull them without modifying their original paths. I don't see an easy way to accomplish this. Any help is greatly appreciated!

OATUH Cloudflare Pages

I was developing trying to implement github oauth on cloudfare pages using a beta branch. the production branch is define as another branch and the production branch contains the main url. It works locally but not on cloudflare pages my oauth flow looks like this at the moment ```javascript...

Cache control on page worker

I can't find conclusive information about this in the docs. If I have a pages project with dynamic routes using workers, if I set a cache control header on the page worker, will the cloudflare CDN cache it?

HSTS on Pages

Hi, Is there a way to set the HSTS header on a Pages site? Our domain isn't managed by cloudflare (so most of the general cloudflare settings aren't available), but the website is deployed through Pages, so uses Let's Encrypt. When I google it, I mostly get back results relating to cloudflare sites other than Pages. I have all the relevant redirections set up on our own server for when anybody doesn't visit www. explicitly. Thanks...