Questions tagged [cloudflare-pages]

82 questions
0
votes
0 answers

Getting error while integrating Socket io and cloudflare

Server-side code: const express = require("express"); const app = express(); const http = require("http"); const { Server } = require("socket.io"); const cors = require("cors"); app.use(cors()); const server = http.createServer(app); const io =…
0
votes
2 answers

Statically loading NextJS Image gives 404 on production but works on localhost

I don't understand why the static image is not found on production, but works on localhost. I put all my images in the directory: public/images/... /* image.tsx */ return (
koza
  • 71
  • 1
  • 2
  • 13
0
votes
0 answers

Cloudflare Pages .html redirect causes Redirection Error for Google indexing

It seems that if I have in my page links that use the .html extension, Google Search Console's crawling or live test will fail to retrieve those resources, with a Redirection Error message under Page resources: x/x couldn't be loaded, even though a…
0
votes
0 answers

Combine Cloudflare Pages and Tunnels

I would like the root of my domain uses cloudflare page static website and to have some dynamic directories which use cloudflare Tunnels. Ex. x.com/index.html (static) x.com/submit (tunnel to a backend) Configuring tunnels with two different paths…
SteveGot
  • 19
  • 2
0
votes
1 answer

Image not working in production, works good on localhost

I'm building a website with Next.js and Mantine. I want to put the Image with my logo in my Header so I used Image from next/image but the problem is that it's not working when i deploy it. It works perfectly on localhost. Deployed: Locally: Code…
Peter
  • 25
  • 5
0
votes
0 answers

Nuxt Generate fails on Cloudflare Pages to build

19:57:39.125 Executing user command: nuxt generate 19:57:40.032 19:57:40.032 ERROR (node:1364) ExperimentalWarning: The ESM module loader is experimental. 19:57:40.032 19:57:40.034 19:57:40.035 FATAL Unexpected token…
Charlotte Wells
  • 375
  • 1
  • 2
  • 8
0
votes
1 answer

Webpack + ENV - Cloudflare pages can't load chunks with async import (Wrong URL)

I have a trouble with webpack and Cloudflare pages. Origin: develop.kop-dev.pages.dev When loading dynamically modules in typescript using Webpack there is a problem, it loads from incorrect origin. Everything loads (Static imports, Assets etc…) But…
saqirmdev
  • 65
  • 6
0
votes
0 answers

@sveltejs/adapter-cloudflare. I get many error while run `npm run build`

I'm Using @sveltejs/adapter-cloudflare to deploy my project to Cloudflare Pages. I'm tried to use this package for a simple sveletKit app. It can success deploy to Pages. But with more complex project, I got many many ERROR log while run…
0
votes
0 answers

Cloudflare error 1015 you are are being rate limited

We are using Cloudflare on our website. We have a page where users can search for products on our website. Along with the products we display product images on that page. One product has a minimum of 10 images and users can see 200 products at one…
0
votes
0 answers

Wrangler local development with Cloudflare Pages

I'm playing around with the new Cloudflare Functions functionality, specifically the file based routing. However I've found it tiresome to have to deploy and debug my functions in the cloud I found this, which seems to say I can use Wrangler to…
Ucinorn
  • 648
  • 7
  • 21
0
votes
1 answer

500 error on SvelteKit deploy to Cloudflare pages

When deploying my SvelteKit app to Cloudflare Pages, it builds without issue but navigating to the site shows my navbar and footer, with an error message of global is not defined. In the console, I get the message Failed to load resource: the server…
Max
  • 118
  • 2
  • 15
0
votes
1 answer

React app using Cloudflare Pages: error react-scripts@5.0.0: The engine "node" is incompatible with this module

When I deploy a React app using Cloudflare Pages, the Building application step fails with the error: error react-scripts@5.0.0: The engine "node" is incompatible with this module. Expected version ">=14.0.0". Got "12.18.0" error Found incompatible…
gameveloster
  • 901
  • 1
  • 6
  • 18
0
votes
0 answers

vue 3 cloudflare pages build missing javascript tag

I try to build my project locally and ran it using serve and succeeded, but when I deploy it to cloudflare pages the pages is blank, here the html source from cloudflare build