A random build was incorrectly promoted to production
See original GitHub issueI was experimenting with putting non-string values for env
vars in now.json; I made a variable called VUE_APP_FOO
under the build
env vars, and tried to give it an array value like:
"VUE_APP_FOO": ["foobar", 123]
When trying to deploy with the now
command, it predictably failed with this error:
Error! The property
build.env['VUE_APP_FOO']
in now.json can only be of typeString
.
I changed the value to a number instead of an array, and it failed again with the same error. After those two experiments, I made the value a string (actually, it was the array again, but JSON-encoded) and ran now
one more time. This time, I unexpectedly got this warning:
WARN! This is the first deployment in the [my project name] project. It will be promoted to production.
Sure enough, it became the new production build on the domain after it finished building. It definitely wasn’t the first build for the project, and I didn’t change the name or anything, only that environment var. Was it because the previous two builds failed? Or was it totally random?
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Sure thing. Sent!
Gotcha. Thanks for the details! We’ll take a look why this is happening.
It should not be.