diff --git a/buffalo/cmd/build/assets.go b/buffalo/cmd/build/assets.go index b719fdcae..c71bf7215 100644 --- a/buffalo/cmd/build/assets.go +++ b/buffalo/cmd/build/assets.go @@ -10,7 +10,7 @@ import ( func (b *Builder) buildAssets() error { if b.WithWebpack && b.Options.WithAssets { - if err := envy.MustSet("NODE_ENV", "production"); err != nil { + if err := envy.MustSet("NODE_ENV", envy.Get("GO_ENV", "production")); err != nil { return errors.WithStack(err) } if err := b.exec(webpack.BinPath); err != nil {