From 876a5056e97a195f6a755fb7f66575f7c813e2ee Mon Sep 17 00:00:00 2001 From: Westly Wright Date: Tue, 3 Jul 2018 15:01:46 -0700 Subject: [PATCH] Update env --- gulpfile.babel.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gulpfile.babel.js b/gulpfile.babel.js index 972ae17b647..f10f9464060 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -168,7 +168,12 @@ gulp.task('pub-delete', () => { gulp.task('build:search-index', (cb) => { - const opts = {stdio: 'inherit'}; + const env = process.env; + + const opts = { + stdio: 'inherit', + env: env + }; return spawn(process.cwd()+'/scripts/build-algolia.js', opts).on('close', (/* code */) => { cb(); });