Create separate build configuration for staging#2064
Conversation
|
npm has a |
|
Hey, I noticed you changed some webpack configuration files. This can break production builds. Did you remember to run a production build locally to verify they still work? |
|
Yes, I did run a local build: No errors. |
|
npm has a |
|
Hey, I noticed you changed some webpack configuration files. This can break production builds. Did you remember to run a production build locally to verify they still work? |
| const dotenv = require('dotenv'); | ||
| const common = require('./webpack.common.js'); | ||
|
|
||
| const env = dotenv.config({path: path.resolve(__dirname, '../../.env.staging')}).parsed; |
There was a problem hiding this comment.
Is this the only difference between prod/staging? Is there a way to DRY this up more?
There was a problem hiding this comment.
DRYed up a bit 👍
|
Nice, this seemed to have worked 🎉 |
Details
There are many CORS errors on https://staging.expensify.cash
And it is because it is using the wrong value for the
EXPENSIFY_URL_CASHenvironment variable.Fixed Issues
No issue, hot-fixing staging.
Tests
Tested with local build, which is the best we can do for now.