From 72e67224ae242bea18bba1b049727538734c7b93 Mon Sep 17 00:00:00 2001 From: Olli Vanhoja Date: Sat, 6 Aug 2016 15:15:58 +0300 Subject: [PATCH] Add an environment variable to change .now.json location For issue #99 --- lib/cfg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cfg.js b/lib/cfg.js index 5124948..3df3156 100644 --- a/lib/cfg.js +++ b/lib/cfg.js @@ -2,7 +2,7 @@ import path from 'path'; import fs from 'fs-promise'; import { homedir } from 'os'; -const file = path.resolve(homedir(), '.now.json'); +const file = process.env.NOW_JSON ? path.resolve(process.env.NOW_JSON) : path.resolve(homedir(), '.now.json'); export function read () { let existing = null;