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

Commit d208258

Browse files
authored
Set NODE_ENV to support build with npm & Yarn.
1 parent 30dbbc3 commit d208258

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bin/compile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ dir=$(mktemp -t buildpackXXXXX)
3232
rm -rf $dir
3333

3434
# Set env vars for the inner buildpacks in `.buildpacks`
35-
# * Install `npm build` tooling.
36-
export NPM_CONFIG_PRODUCTION=false
35+
# * install build tooling (devDependencies) with npm & Yarn
36+
# * used only during compile, as the runtime is a static web server
37+
export NODE_ENV=development
3738

3839
echo "=====> Downloading Buildpack: $url"
3940

0 commit comments

Comments
 (0)