Skip to content

UI applications built by buildpacks is not using react production build #756

@Lancelot0105

Description

@Lancelot0105

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions