forked from Mirrors/keyoxide-web
Fix future commonjs reference to pug
This commit is contained in:
parent
2d0383e61a
commit
9b362b152f
1 changed files with 2 additions and 1 deletions
3
index.js
3
index.js
|
@ -30,6 +30,7 @@ more information on this, and how to apply and follow the GNU AGPL, see <https:/
|
||||||
import express from 'express'
|
import express from 'express'
|
||||||
import { readFileSync } from 'fs'
|
import { readFileSync } from 'fs'
|
||||||
import { stringReplace } from 'string-replace-middleware'
|
import { stringReplace } from 'string-replace-middleware'
|
||||||
|
import * as pug from 'pug'
|
||||||
import 'dotenv/config.js'
|
import 'dotenv/config.js'
|
||||||
|
|
||||||
import apiRoute from './routes/api.js'
|
import apiRoute from './routes/api.js'
|
||||||
|
@ -42,7 +43,7 @@ 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.set('env', process.env.NODE_ENV || "production")
|
||||||
app.set('view engine', 'pug')
|
app.engine('pug', pug.__express).set('view engine', 'pug')
|
||||||
app.set('port', process.env.PORT || 3000)
|
app.set('port', process.env.PORT || 3000)
|
||||||
app.set('domain', process.env.DOMAIN || "keyoxide.org")
|
app.set('domain', process.env.DOMAIN || "keyoxide.org")
|
||||||
app.set('keyoxide_version', packageData.version)
|
app.set('keyoxide_version', packageData.version)
|
||||||
|
|
Loading…
Reference in a new issue