Cloudflare - Application failed to respond
Hello! My app is working with test domain. But with custom it doesn't work.
I see "Cloudflare proxy detected", but I get
Bad gateway Error code 502
or
Application failed to respond
pages.
How do i fix it? Thx.
26 Replies
Project ID:
841ba519-e06f-4b85-b455-2b2846dd440e
841ba519-e06f-4b85-b455-2b2846dd440e
send the railway domain please
findminiapp-production.up.railway.app
okay and the Cloudflare domain too please
what kind of app is this
Astro SSR
what is your start command?
npm start
what is your start script
your start script is starting a development server, please change it to start the built app
I will try, thank you, but meanwhile, it works with railway domain somehow?
its unfortunate that it does, as running a development server would be costly
unfortunately didn't work
im not sure how that related to what i suggested, besides, the build command was already being ran and there was no issues with it
I'm not sure I understand what you suggested. I tried to deploy with built command. What am I doing wrong? Sorry, i'm a newbie
run
npm run build
locally and then show me the contents of the built directory@Brody I uderstood my mistake and found your answer in another topic
Solution
"start": "node ./dist/server/entry.mjs",
this command worked
Thank you a lot for guiding me!
no problem!