Chris | Warawul Coffee GmbH
CDCloudflare Developers
•Created by Chris | Warawul Coffee GmbH on 12/1/2023 in #general-help
Cloudflare redirect - CSS, Images, JS not working after redirect
Hi, I have written a website in Astro that is hosted on Cloudflare Pages. I have written redirect rules related to cookie values and country the visitors is from. The redirect itself works great. But it breaks the site's CSS, JS and image links. Is there a way to make the redirects work and not break the site?
These are the redirect rules:
If Expression
and Then Expression Dynamic
`
and status code 302
And the other one has the If expression
Would be grateful for your help
7 replies
CDCloudflare Developers
•Created by Chris | Warawul Coffee GmbH on 11/27/2023 in #general-help
Cloudflare Redirect breaking CSS and JS
Hi, I have written a website in Astro that is hosted on Cloudflare Pages. I have written redirect rules related to cookie values and country the visitors is from. The redirect itself works great. But it breaks the site's CSS, JS and image links. Is there a way to make the redirects work and not break the site?
8 replies
CDCloudflare Developers
•Created by Chris | Warawul Coffee GmbH on 11/16/2023 in #pages-help
Script does not work with environmental variables
Hi, I am using this function to get contact form submit data and send it via sendgrid. However, once I change the API keys to environment variables it does not work anymore since it cannot get those environment variables from my pages directory. Do you have any ideas how to solve it?
5 replies