chore: build fixes

This commit is contained in:
Taranto 2022-05-04 22:24:52 +01:00
parent e4cf1d6297
commit ebfd3f433a
16 changed files with 16 additions and 7 deletions

View file

@ -4,6 +4,7 @@
const pgp = require('pg-promise')()
const os = require('os')
const path = require('path')
require('dotenv').config({ path: process.env.NODE_ENV === 'production' ? path.resolve(os.homedir(), '.lamassu', '.env') : path.resolve(__dirname, '../.env') })