Forgot to specify the position in the array to use lol
This commit is contained in:
2
index.js
2
index.js
@@ -12,7 +12,7 @@ function criticalFileLoader(file) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const globalConfig = JSON.parse(criticalFileLoader('config.json'))
|
const globalConfig = JSON.parse(criticalFileLoader('config.json'))
|
||||||
const globalVersion = criticalFileLoader('GITVERSION').split(" ")
|
const globalVersion = criticalFileLoader('GITVERSION').split(" ")[0]
|
||||||
|
|
||||||
module.exports = { app, globalConfig, fs } // Export express app and fs objects and globalconfig
|
module.exports = { app, globalConfig, fs } // Export express app and fs objects and globalconfig
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user