In our environment.js settings, we want to define build-environment-dependent settings for corber, like so:
if (environment === 'development' && process.env.CORBER ) {
...
}
But corber start fails because the value of environment is for some reason undefined at this point and thus none of the conditionals match.
A workaround is to first define the minimum settings to pass validation:
if (process.env.CORBER) {
ENV.locationType = 'hash';
ENV.rootURL = '';
};
Simple enough, but it strikes me that this might be a bug?
(FWIW, I don't believe that corber build has this issue.)