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

Something is caching my Pages site

Hello, I have an issue where pages seem to be cached for some reason. I believe I have turned off Cloudflare's caching in the dashboard (see image). However, old pages are sometimes served. I have a server-side rendered page with a countdown on it. Often, what will happen is that a user will load the page, then close it, then come back to it later, and it displays the (now outdated) same server-side rendered countdown as it did the first time they visited (until JS loads and executes)....
No description

How do I disable npm install @ start`Installing project dependencies: npm install --progress=false`

How do I disable npm install on start (Installing project dependencies: npm install --progress=false)? Here's my build command: npm install -g bun && bun install --production && bun run build...

Anyone have any idea to connect a Postgres db in sveltekit with pages?

Anyone have any idea to connect a Postgres db in sveltekit with pages?

Getting different outputs from the same repo! (Hugo)

Hi - I have a Hugo blog that I'm deploying from a github repo. When I run hugo server --watch --ignoreCache locally on the repo, everything shows up correctly, but when CF builds and deploys it, it's missing some key elements (the theme is not rendered correctly). I can't figure out what the problem is. Same repo, and same hugo version (117) on both local and CF. Any help would be much appreciated...

Adding CORs?

Hey everyone, I'm working with AstroJS to create a website on Cloudflare Pages that includes an API endpoint. I want to make sure that only a specific button on my site can call this API. Is there a way to restrict access to this endpoint by using CORS? I want to set it up so that the API can only be called by this button and nowhere else. Can I do this within the endpoint's code?

Error code DNS_PROBE_FINISHED_NXDOMAIN

hi guys, I am working with cloudflare pages and I want to bring out my first website. But after finishing the process with cloudflare and after clicking on the Link (from Cloudflare) I get this error code...Anyone an idea? It would be great to solve the problem < 3

Is my site unsecured?

Help, for some reason, netskope is RBI-ing my site (Remote browser isolation). What could be the thing triggering such a response? This is my site: http://christianjtorres.com/...

Nuxt 3 deploy fail

Trying to deploy a nuxt 3 app on pages and I'm getting this error: Error: Failed to publish your Function. Got error: Uncaught Error: EvalError: Code generation from strings disallowed for this context...

Building application failed

Hello! I'm facing issues with building my application, and I can't quite figure out what's causing the problem. I haven't made any changes to the build settings, and the application itself hasn't undergone any significant changes. Here are the logs from two builds: one was successful, while the other one failed. It's quite puzzling that the failed build is installing fewer npm packages compared to the successful one. I would greatly appreciate any assistance or guidance. Thank you very much in a...

n00b Q: wrangler / pages d1 env Qs

hello all, attempting to get next-on-pages dev env working with d1, 1. i realized it's defaulting to local, but i am unable to pass the --remote flag, as it throws an error saying its unrecognized: ```...

Nuxt 3 Deploy Fail

I'm trying to deploy a nuxt 3 app through github actions and its failing with this error: `Run cloudflare/pages-action@v1
npm WARN exec The following package was not found and will be installed: [email protected]...

Could not generate the asset manifest

Could not generate the asset manifest. Please try again. If this continues to fail, please consider posting in our Discord (https://discord.gg/cloudflaredev) or create a ticket and reference the deployment ID.
Could not generate the asset manifest. Please try again. If this continues to fail, please consider posting in our Discord (https://discord.gg/cloudflaredev) or create a ticket and reference the deployment ID.
...

pages is not working

manual deploy result in 80000000, git failed as well it is a simple static site html & css...

Website is not deploying

Hi, the website is not deploying. I added a screenshot...
No description

Failing deploy (Could not generate the asset manifest)

kerk.pages.dev deployment id: 71019390-57e8-4649-b322-239bd307a0a6 account id: 6f2c7eb2f444631dd77b50295b801357 Error: Failed to publish assets....

Deployment to pages failed after updated an image?

Hi John here, Ive got a site deploted using CF Pages, its been working great, started making a couple updates to the content and replacing images in my github repo. on my last update its started to fail. I havent changed any html or js just text in the html and replaced an image by uploading over it the image. Please help i dont have any usage logs to understand how to fix this issues but i can post the deployment logs if that would help...

Pages deployments are not working.

I tried with multiple projects but Pages deployments are currently off.

n00b Q: next-on-pages + D1 binding

i have seen some conversations and examples on discord, but still running into some mistakes, 1. if i try to access a d1 binding using the suggested dev approach (watch build + wrangler pages dev), i am able to access the d1 instance (the instance is not undefined and the dev command shows a binding to the d1 db created from the gui), but not view the table (e.g., wrangler crashes saying table does not exist, but i can confirm it exists by using the CLI), i think i am misunderstanding how wrangler pages links to the d1 db, i.e., does the dev command create a local one or is there a flag to pass? 2. when using the npm run dev + cf-proxy workflow, i am able to access kv, but not d1, e.g., it returns undefined when wrapping it: binding(process.env.db), ...

How to set domain for preview branch?

I can't find the options to set preview domain to preview.<myapp>.pages.dev