Skip to content
This repository was archived by the owner on Jun 11, 2022. It is now read-only.

Commit 840a72b

Browse files
committed
Remove NODE_ENV=development workaround since Node buildpack installs devDeps for build & auto-runs build.
1 parent c61d5fd commit 840a72b

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

bin/compile

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,6 @@ branch=""
3131
dir=$(mktemp -t buildpackXXXXX)
3232
rm -rf $dir
3333

34-
echo "-----> Configure create-react-app build environment"
35-
# Set env vars for the inner buildpacks in `.buildpacks`
36-
# * during compile, install build tooling (devDependencies) with npm & Yarn
37-
# * in runtime, NODE_ENV is not used (this buildpack launches a static web server)
38-
export NPM_CONFIG_PRODUCTION=false
39-
INHERITED_NODE_ENV="${NODE_ENV:-development}"
40-
if [ "$INHERITED_NODE_ENV" = "production" ]
41-
then
42-
echo ' Setting `NODE_ENV=development` to install dependencies for `npm build`'
43-
export NODE_ENV=development
44-
else
45-
echo " Using \`NODE_ENV=${INHERITED_NODE_ENV}\`"
46-
export NODE_ENV="${INHERITED_NODE_ENV}"
47-
fi
48-
4934
echo "=====> Downloading Buildpack: $url"
5035

5136
if [[ "$url" =~ \.tgz$ ]] || [[ "$url" =~ \.tgz\? ]]; then

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy