#Deploying Astro Project on Cloudflare

1 messages · Page 1 of 1 (latest)

tiny smelt
#

Hey everyone,

I'm having some trouble deploying my Astro project on Cloudflare and could really use some help. I'm new to both Astro and Cloudflare, so I'm still figuring things out.

I cloned a repo and made some changes to add my content. When I run the dev, build, and preview commands, everything works fine—no errors in either production or dev. But for some reason, the page only works if I comment out my changes and stick to the original repo.

I'm not sure what I'm doing wrong. Any ideas or suggestions would be greatly appreciated!

Context: Here is the previous post where we were troubleshooting a related issue and got me stuck in this other problem: https://discord.com/channels/830184174198718474/1241683102112153632

Thanks in advance!

tiny smelt
#

Can someone help me out here please?

dense heart
#

Hi @tiny smelt still fighting cloudflare I see 🙂
It would be good if you could share more information, especially on what you changed and what you mean by "it doesn't work". Your repo has over 40 commits and it's a bit difficult to just figure out where the problem lies with that much information. I would recommend you to take a more systematic approach to finding your error as well. You know that the original repo works, so start from there and add your changes gradually instead of all at once. That way you can figure out which of your changes is breaking your app. If you still don't know why it's breaking it, then at least we have some more info to go by and take a look

#

If you know git, then you could also use git bisect to help you figure out where the problem lies, but since you say you have to deploy it, it might not be ideal

tiny smelt
#

sound like a good idea

dense heart
#

The only other suggestion I can think of is to check the cloudflare runtime logs. And also your browser logs and the network tab. If the page doesn't load there should be some indication somewhere (either in cloudflare or in the browser, but probably both) that tells you what to look at

tiny smelt
#

Those are great tips, thank you. I will get back to you. 🙂

#

I will start a new repo so its easy to trace the changes