Why did I fail to build in this container despite being able to do so locally
zaneshen314
PROOP

a year ago

Why did I fail to build in this container despite being able to do so locally

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

Solved

2 Replies

Hi Zane,

Your build logs contain: Treating warnings as errors because process.env.CI = true

This will make your build fail if there are warnings. Ideally, you'll want to fix the warnings.

Alternatively (less ideal), you can set an environment variable for the service, named CI, and set the value to false.

Regards,

Christian


Status changed to Awaiting User Response Railway about 1 year ago


brody
EMPLOYEE

a year ago

Additionally, It looks like you are attempting to run a development server, that's going to be costly and will cause stability issues.

https://github.com/brody192/create-react-app-starter

To run a production ready server, simply copy the nixpacks.toml and Caddyfile into your project from that GitHub repo!


Railway
BOT

6 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 6 months ago


Loading...