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;