add correct version number from package.json to config

This commit is contained in:
Moriz Wahl 2021-05-31 12:55:14 +02:00
parent b958d2df8e
commit 2a66fc332a

View File

@ -1,7 +1,8 @@
// ATTENTION: DO NOT PUT ANY SECRETS IN HERE (or the .env)
// Load Package Details for some default values
// const pkg = require('../../package')
const pkg = require('../../package')
const environment = {
NODE_ENV: process.env.NODE_ENV,
DEBUG: process.env.NODE_ENV !== 'production' || false,
@ -17,6 +18,7 @@ const server = {
const CONFIG = {
...environment,
...server,
APP_VERSION: pkg.version,
}
export default CONFIG