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

Automatically applying D1 migrations when deploying pages

I've found a few topics on this, but they've sadly gone unanswered. What is the expected route for applying migrations to a bound D1 database when deploying? I'd sort of expected this to 'just work' via the built in git integration (since almost everything else does) and my config is vanilla, but that doesn't seem to be the case. It looks I need to create a CI/CD flow, avoiding the use of the built in git connection entirely and applying there. Though I can't see any docs pointing in that direction....

Send email

Can I send emails from Cloudflare functions? These would just be update emails to the admin / myself, so not an issue if they land in spam.

Connection timed out Error code 522

Hello, I have created a pages and completed all steps through the SaaS function. Everything is as shown in the tutorial effect, including fallback origin and Custom Hostnames. However, when opening www.mystore.com and customers.saasprovider.com, it shows: Connection timed out Error code 522. proxy-fallback.saasprovider.com can be used normally. What should I do?

help

how can I unrestricted the pages and applications I restricted

Very degraded performance on any of my pages website

Any of my pages projects have very degraded load times, TTFB up to 10secs or just straight up not loading

I can't for the life of me get a svelte project to call a function.

I've tried putting the function code in routes/hello.js and routes/hello.server.js According to the docs: https://kit.svelte.dev/docs/adapter-cloudflare#notes ...

Nuxt Builds timing out

I'm starting a new project using Pages using NuxtJS - which isn't new to me. However it is my first Typescript Nuxt project. I've setup the Github integration for deployments, but my builds keep timing out. Relevant logs:...

Buil fail

I'm encountering issues building my Astro application, which uses Svelte for components and Supabase for the database. The application is hosted on Cloudflare Workers. While local development is working fine, the build process on Cloudflare is failing. The root of the problem seems to be the micromatch module. I'm getting an error related to micromatch during the build process. I've exhausted the suggestions provided by AI assistants like ChatGPT, Gemini, and Copilot, but none have resolved the issue. ``` 02:01:16 [ERROR] [vite] x Build failed in 631ms...

Adding npm run build --force command?

I am getting 00:11:51.664 Installing project dependencies: npm clean-install --progress=false 00:11:53.563 npm ERR! code ERESOLVE...

SvelteKit: event.platform is accessible on router but not on hooks.server.js

Hi, I'm using a latest cloudflare@latest to init the project and there is some strange issue happening the event.platform is accessible on router +server.js +page.server.js +page.js and other but not on hooks.server.js I wonder if there is a change related to this on the cloudflare adapter, thank you!...

Next.js deployment fails on pages, works in Vercel, Netlify

Page: toph.pages.dev Deployment ID: bf55d2ba-ceef-458a-99d4-c48d923f1797 Account ID: 6a2784243169ac723308b65ae743e5ca I'm trying to deploy my project to cf pages but it fails while giving the following error. It works fine on my machine, netlify and vercel. Only CF pages seems to have this problem. I tried upgrading the node version but that didn't solve it either....

D1 binding lost when passed as param?

Hi, I have a weird situation. I have a D1 binding in a Nuxt API event handler. I'm passing the binding as a parameter to a function outside the event handler. This works fine locally, but when deployed to production, the function execution just stops (no exceptions, logs whatsoever) after accessing the binding from the function. I'm using drizzle to query D1. If I keep all the code in the event handler, it works in production as well. Any idea?...

Dashboard environment variables not available on process.env at build time

I'm trying to deploy a tincms project to cloudflare pages. I've added these env vars in the dashboard for the project. The build-time config for tina tries to read them off process.env: ``` console.log('Process.env:', process.env); console.log('Tina Client ID:', process.env.NEXT_PUBLIC_TINA_CLIENT_ID);...

Private git submodules

Deployments: There are open issues regarding deployments with git submodules to private repos - they don't work. For those stuck with private submodules, can something be done that maintains the nice work already done to keep attack surfaces limited by having short lived deploy keys?

Nameservers Issue for My Domain

Hi, I had been using my domain successfully with nameservers: ben.ns.cloudflare.com, coco.ns.cloudflare.com and I deleted the domain to reset it (which was the biggest mistake that I made) because I was facing issue with gitlab pages verification (I didn't know about cloudflare pages that time otherwise I wouldn't have to delete the domain). I added the domain again and found that there are new Nameservers assigned to me now. I have a registered domain registered upto 2033 but due to issue on th...

I don't think I'm switching to Automatic SSL/TLS

I received an email from cloudflare concerning the new SSL/TLS mode. and honestly I think it's pretty redundant and maybe harmful if you know what you are doing. since suppose you used this feature and it detected that full (strict) mode is the best option for you. and then you decided you wanted to use self signed certificates for whatever reason. it will take a bit of time until it switches to the correct mode full mode (not strict) (until the schedule is reached). which will mess up your service. ...

Nx build hangs for indefinite

deployment ID: 78c05b2e-821f-4568-b81b-72f0d1419223 account ID: 40db39063e405ac734b95d382cba7970 Locally it takes around 19s to build ...

Can Nextcloud run on Cloudflare Pages?

Is it possible to run a Nextcloud instance, which is based on PHP, on Cloudflare Pages? I would use cloudflare with an external storage provider like R2. No files would be stored on Pages, except the PHP files that are needed to run the Nextcloud App. Kind regard, Marius...

Angular : Assertion Error

Hello, I'm encountering an issue with an Angular application I've created and hosted on Cloudflare. This problem only occurs when the project is deployed on Cloudflare. Locally or on other hosting environments, there are no errors. The error only occurs on one specific page when I refresh it or enter the URL directly. If I navigate to this page via a link (RouterLink), everything works fine....

Error: Input required and not supplied: apiToken

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