From 6d052cbc61eec17b59fcb4814fa79f0c96c733f1 Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Mon, 4 Feb 2019 15:48:06 -0800 Subject: [PATCH] docs: sync({watch: !NODE_ENV}) --- lib/config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/config.js b/lib/config.js index 3ea4fe77..fd4aa753 100644 --- a/lib/config.js +++ b/lib/config.js @@ -1,6 +1,6 @@ /* eslint-disable no-console */ const sync = require('./sync') -const {CI, NODE_ENV, NOW_URL} = process.env +const {NODE_ENV, NOW_URL} = process.env module.exports = (nextConfig = {}) => { const {assetPrefix = NOW_URL || ''} = nextConfig @@ -27,7 +27,7 @@ module.exports = (nextConfig = {}) => { // only attempt to sync locally and in CI if (dev && !configured) { - sync({watch: !CI}) + sync({watch: !NODE_ENV}) } config.module.rules.push({