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

Cloudflare Pages: NextJS&VueJS Hybrid deployment failed

Hi, I am using NextJS functions and VueJS static files for a historical problem. My project arch is: src/pages/api/*.js for functions and fe/*.vue . My Pages framework is selected as NextJS. Before each build, I will use npm run prebuild to change directory to fe and build the static files to public. ``` {...

Websockets with NextJS

Hello, im new in cloudflare workers, i'm just trying to achieve the following thing: in Nextjs send some data to the cloudflare worker through websockets: ...

Pages deployment stuck

Pages deployment stuck on 'Success: Finished cloning repository files'

fetch

articles page work, it gets api for articles, but app/routes/articles/$slug.tsx not working ...

Adding headers to Response.json

As the title suggests, would it be possible to add CORS headers to the response when using Response.json?

unable to use envrionment variables using Astro JS

hello! I am trying to use environment variables in my static Astro JS site, but when using process.env.VAR or import.meta.env.VAR (like the Astro docs suggest), I get build errors for both. Whereas with netlify and vercel, both work and give me successful deploys I have added the same env vars in both, and my cf pages builds suceeded last week but the same code no longer works. Please let me know if more details are needed....

Getting "context is not defined" error

Attempting to use context.env.VARIABLE for a few environment variables I have set up, however I'm getting this exception when it runs: ```ts "exceptions": [ {...

Cannot add custom domain after removing from one pages project, and attempting to add to another

I was attempting to point our production name (www.rhone.com) from one pages project to another by deleting the custom domain in one and adding to the next. The request seemed to have issues and the page froze, and now it seems the custom domain is still stored somewhere as it won't let me add it anywhere.

File Size Limit Question

So I saw that the maximum file size for the cloudflare pages free plan is 25MB. I've been trying to host a .pt file (~30-40MB, from TorchScript, AI stuff) for downloading into a docker container through various free methods, but they either don't support files that large or they are very difficult to use. I've used Pages for a lot of other things and I've had a great experience, so I figured I'd ask here: is the file size limit a technical limit, or is it worth requesting a limit increase to 50M...

After migrating a pages project to a new account, the subdomain never gets validated

I had to migrate a pages project ( info.annuitygeneral.com ) to another account, as there is no migration tool. I first deleted the pages project in the old account. Then re-created and re-deployed the project in the new account. As I previously deleted the old project, I was able to create the new project in the new account with the same name (and url) than the previous one. The problem was that after adding the domain ( info.annuitygeneral.com ) configuration, it never gets validated. The CNAM...
No description

remix

newbie question: can i consume api and do user auth with remixjs in cloudflare pages, im using supabase & Strapi & remix remix as frntend...

Any way around the 20k files limit for Pages?

We have a website that uses Next.js static rendering . We generate at the moment around 10k pages and this is working without issues within our Pages project. The problem now is that we want to increase the number of generated pages to around 400k. I filled out the increase limits form about 2 weeks ago, but haven't heard back from Cloudflare. Is it possible to increase the limit on the max number of pages to accommodate our needs?

How to deal with Pages/Workers outages?

It seems there were issues for pages/workers yersterday. What is the best way we can deal with those issues? What kind of pattern should I follow to present these errors to the users?...

Can't access KV namespace in local dev [VITE]

I'm pretty sure I'm entering the build command wrong. This will build the project just fine: npx wrangler pages dev -- npm run dev But I can't figure out where to put kv=KV_NAMESPACE ...

Github Integration Deployment Environments

Hi, Relating to deployment id 3faaa302-9ce4-4f69-a7a0-d923e8a698c6 account id 26968497a25eabba3320b33bb8b76ace We're looking to migrate from vercel to cloudflare pages for our preview environments and CI for our UI builds. However we noticed a difference in the github integration. Vercel would make use of Github Deployment Environments (https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#using-an-environment) on our PRs to indicate a build URL was available. This would signal to our UI testing service that a build was available for testing. ...
No description

Segfaulting when building my Gatsby project

I constantly have to restart builds on pages and tweaked all of the configurable settings. Any other creative ideas for having a successful CI/CD?

Question about github action environments

Hi Guys I'm using a github action to publish my page to cloudlfare pages. This action uses a dedicated environment (Link to Action). For some reason running this (and the preview action) always creates new environemnts (cloudkit (Preview) and cloudkit (Production) Is there any way to prevent this and the result of the github action to link to the environment specified in the Action?...
No description

Custom Domain

I set up a website running through git. The auto generated domain is working fine, but when I use my own the domain the website just doesn't work. I have used it before and it worked, any ideas??