If I want to add a custom domain to the account 2, I have to create a CNAME on 1st account pointing to the url provided by Pages (2nd account). Worked, but now, I want to get rid from the old url assigned by Pages (pages.dev)
It depends. Cloudflare has normalization settings under Rules -> Settings Magic Link: https://dash.cloudflare.com/?to=/:account/:zone/rules/settings Only the Cloudflare one merges successive slashes, and it'd only do it to Cloudflare's products by default. You can enable it to normalize the input to your origin. Even with both enabled though, the web browser would still see it sending two slashes
I'm having issues with my Remix + Vite app building and deploying successfully but getting 404 for assets in production. It also works fine with Wrangler locally. Anyone experienced this?
How do you setup redirects only for urls with non-empty wildcards? For example: I want to redirect example.com/slug/123 to example.com/123 and leave example.com/slug as it is without redirecting. I have set the below in redirects file. /slug/* /:splat
But the above also redirects example.com/slug/ path to example.com/.
Is there a way to redirect only if it matches the non-empty wildcard?
Not really, unless you do so within Functions. Pages already has a cache, and applying an extra cache layer on top could cause it to break when you update your project, while providing negligible performance gains, if any
Things get automatically cached if you add a cache header, and it's highly recommended to add cache headers to static content, so then I guess static content will get cached?
Pages already has its own cache under the hood though, so if your css/js isn't using auto-generated names, you can end up with your custom domain being delayed updating
Guys, are image, js, css files counted as calls on pages or are only visits counted? Imagine that I have a website that has js, css and 3 images. Will it charge like 6 calls? (1 visit + 5 assets?)
Pages is free. Pages Functions are charged according to the Pages Functions pricing, but any static assets at all are free (including HTML pages, CSS, JS, and images, excluding server-side rendered pages). https://developers.cloudflare.com/pages/functions/pricing/
Also, in the future, please avoid cross-posting as it makes it harder to know whether someone's already answered a question (as was the case here with workers-and-pages-discussions)
GUYS I HAVE MADED A STATIC WEBSITE WITH HTML CSS AND JAVASCIRPT I HAVE USED A API KEY AND WANTED TO UPLOAD IT ON CLOUDFARE PAGES HOW DO I HIDE THE BUT STILL MAKE THE WEBSITE WORK
GUYS I HAVE MADED A STATIC WEBSITE WITH HTML CSS AND JAVASCIRPT I HAVE USED A API KEY AND WANTED TO UPLOAD IT ON CLOUDFARE PAGES HOW DO I HIDE THE BUT STILL MAKE THE WEBSITE WORK
Do you have _headers and _routes.json in your public folder? I all of a sudden got hit by 404's on assets and including _headers and _routes.json per this remix PR (https://github.com/remix-run/remix/pull/8722) seemed to fix.
Hey, after testing the vite cloudflare template and deployed it I found some minor issues. It took me maybe 2 hours to find out to set Cloudflare settings 'Build output directory' to '...
is cloudflare pages (and workers) at the point that they can replace services like firebase for fullstack serverless sites without having to rely on integrating with other services? as far as i can see it seems mostly there but is missing a few services (eg: auth stuff)
If you feel that a site is engaging in illegal or inappropriate activities, you can submit an abuse report at https://abuse.cloudflare.com/. The Trust and Safety team will review the details and reply if appropriate. You can also report the site to your relevant local authorities. Reports cannot be filed via Discord or with individual employees or Champs.
My automatic deployments stopped and I'm not sure how to restart them. I had two failed builds in a row before I noticed. I tried removing the failed builds. I tried disconnecting and reconnecting my github account. I've tried pushing commits to multiple branches in git, but nothing seems to work. Any ideas?