Fix relative path

This commit is contained in:
Yarmo Mackenbach 2022-03-15 20:54:02 +01:00
parent 17d2b3e094
commit cdeb772545
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1

View file

@ -40,7 +40,7 @@ import staticRoute from './routes/static.js'
import utilRoute from './routes/util.js'
const app = express()
const packageData = JSON.parse(readFileSync('package.json'))
const packageData = JSON.parse(readFileSync('./package.json'))
app.set('env', process.env.NODE_ENV || "production")
app.engine('pug', pug.__express).set('view engine', 'pug')