R
Railway16mo ago
momo5501

build command for different env

I have a React app created using CRA (Create React App). In Railway, I have two environments named "qa" and "production." I want my QA build command to be "NODE_ENV=qa npm run build" and the production build command to be "npm run build." However, I noticed that the build command in Railway settings seems to be shared across environments.
4 Replies
Percy
Percy16mo ago
Project ID: N/A
momo5501
momo550116mo ago
N/A
Brody
Brody16mo ago
just set the service variable NODE_ENV to qa for the service in the qa environment
momo5501
momo550116mo ago
thank you, i will try it later
Want results from more Discord servers?
Add your server