The UI applications built by buildpacks is not using build assets of react. Even though the NODE_ENV is setup during the build time, it is getting overwritten by npm-install buildpack.
Expected Behavior
NODE_ENV should not be overwritten by the npm-install buildpack
Current Behavior
NODE_ENV is getting overwritten by the npm-install buildpack.
Possible Solution
I believe if the code can be configured to use default NODE_ENV, this should work.
Steps to Reproduce
Build any UI application using the nodejs buildpack, see the NODE_ENV which is getting assigned during npm-install buildpack.
Motivations
In a world of CI/CD, in the production environment the basic necessity of any built application is to use the Production asset of the tool. Using a development build contradicts the whole purpose.
I believe a similar issue was raised here:
@andymoe @nebhale @anthonydahanne @ryanmoran