Questions tagged [cloudflare-pages]

82 questions
2
votes
3 answers

Cloudflare Pages - Cloudflare Workers

So i started to get my hands dirty with cloudflare pages and workers My thought is get a domain mydomain.com (done) make a static site @ github myaccount.github.io (done) make a cloudflare pages page add CNAME to DNS ZONE (done) so…
1
vote
1 answer

Cloudflare page with custom domain is cached after deploy

We have a cloudflare page with custom domain, eg.: Page: xxxxxx-frontend-about.pages.dev Custom domain about.xxxxxxxx.co We deployed a new version and we could se that the (1) was updated, but (2) was not and we could see age: 6456. I guess it is…
Vojtěch
  • 11,312
  • 31
  • 103
  • 173
1
vote
1 answer

Getting 500 error when deploying frontend with Directus client on Vercel and Cloudflare Pages

I have a Directus instance (backend) hosted on a heroku dyno that is working fine. I have a custom frontend developed with Qwik city. Everything is working fine locally (dev and build), but when I try to deploy it either on Cloudflare pages or…
Aurélien B.
  • 498
  • 2
  • 9
1
vote
1 answer

Restrict access to an endpoint

I'm using Cloudflare D1 to store data and Cloudflare Pages to display it. I created a function to access the data which works fine until I want to limit access to the endpoint created by that function. I want the endpoint to be only used by my app.…
Mrtsm
  • 35
  • 4
1
vote
0 answers

Deploy SvelteKit with dynamic content to Cloudflare Pages and Workers

I have external API and I'm working on SvelteKit website to present data from that API, I chose Cloudflare Pages for deployment. As I want to hide token used for accessing API, I can't use static pages. So this is how my code looks like //…
1
vote
1 answer

Using secret environment variables in React

I'm using Cloudflare pages to deploy a react app and I'm trying to access my Environment Variables. From Cloudflare Pages docs, I saw that I had to create a middleware function to get the variables, and then in my component, I have to fetch the…
Mrtsm
  • 35
  • 4
1
vote
1 answer

Tailwind lg breakpoint not working after deploy but fine locally

When running my current Astro.build project locally using astro dev, styling works as expected. After building and deploying the site though – either with astro build and astro preview or live on cloudflare pages – the lg breakpoint does not…
J Heschl
  • 177
  • 4
  • 15
1
vote
1 answer

Engine incompatible error while deploying react app to cloudflare pages

I am trying to deploy my react app on cloudflare pages and getting this error while building with yarn. error got@12.1.0: The engine "node" is incompatible with this module. Expected version ">=14.16". Got "12.18.0" error Found incompatible…
1
vote
0 answers

CSS styling changes when tunneling my website with Cloudflare

This is how the website looks directly in my localhost: LOCALHOST DIRECTLY And here via Cloudflare: CLOUDFLARE TUNNEL It looks like the metrics change and the values themself, because as you can notice the color fade of the navbar is different,…
Vanhielf
  • 19
  • 2
1
vote
0 answers

Why is my React application not updating on my custom domain after successful deployment to Cloudflare Pages?

I have deployed a React application to Cloudflare pages successfully. When I navigate to the new deployment link, the application is updated with new version changes, but when I navigate to the custom domain that was set up, I see an old version of…
Philip Mutua
  • 6,016
  • 12
  • 41
  • 84
1
vote
0 answers

How to properly debug SvelteKit on Cloudflare Pages?

I'm currently running a SvelteKit application locally and on a server using PM2 and npm run dev behind a nginx reverse proxy. All of the above works but it's not perfect as it's not in production mode and I wanted to go the serverless route and try…
Kirk
  • 29
  • 6
1
vote
1 answer

Is platform.env available when prerendering with sveltekit & adapter-cloudflare?

I have a +page.server.js file with a export async function load({ platform }) {} function. When I set export const prerender = true at the top, platform.env is undefined. Without prerender it works and I can access my R2 bucket. This is all in…
1
vote
1 answer

Updating Cloudflare Pages to Ruby 3 for Jekyll site

So I've been building a blog site using Jekyll and an specific theme called Chirpy, and deploying it all using Cloudflare Pages, the code is stored in a private Github repository so anytime I push code a new build gets generated by Cloudflare…
Sr. X
  • 15
  • 6
1
vote
1 answer

SvelteKit on Cloudflare Pages -- npm ERR! code ELIFECYCLE

I'm trying to deploy a SvelteKit starter app to Cloudflare using the cloudflare documented method. The following is embedded in the larger build output on Cloudflare's Pages server. 2023-01-08T09:01:19.786481Z npm ERR! code…
KitakamiKyle
  • 83
  • 1
  • 10
1
vote
0 answers

How do I access KV values in Cloudflare react app

I am trying to read a KV from React App, but it won't work I've created a binding and if I try env.Name, the app throws an error with env not defined, So I tried the functions and I can see the functions route on the deployed app but then when I…