We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b1b25a commit a42fddaCopy full SHA for a42fdda
1 file changed
apps/birdhoused/lib/config.js
@@ -1,12 +1,12 @@
1
'use strict';
2
3
var assert = require('assert');
4
-var path = require('path');
+var fs = require('fs');
5
6
// We namespace to `birdhouse` so we can just reuse SeaGL/av-linux' config file
7
// TODO figure out if we should like, loop waiting for config to become available in prod or something
8
assert(process.argv[2], 'config file must be passed as an argument');
9
-var config = require(path.join('..', process.argv[2])).birdhouse;
+var config = JSON.parse(fs.readFileSync(process.argv[2])).birdhouse;
10
11
module.exports = config;
12
0 commit comments