Skip to content

Commit a87d344

Browse files
fix: fix moesif bug published between v2.26.14 and v2.26.17
the .env file wasn't being imported properly, resulting in blank environment being sent to moesif. close #419
1 parent 02fc6ab commit a87d344

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/server.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
'use strict'
44

5-
require('dotenv').config()
5+
const path = require('path')
6+
require('dotenv').config({ path: path.resolve(__dirname, '../.env') })
67

78
const colors = require('colors')
89
const debug = require('debug')('nodestr:server')

0 commit comments

Comments
 (0)