chore: cleanup, node14 and new admin default

This commit is contained in:
Taranto 2020-10-16 17:26:30 +01:00 committed by Josh Harvey
parent c7c18633d7
commit 89bb9a8f25
244 changed files with 3957 additions and 39487 deletions

View file

@ -5,6 +5,7 @@ const https = require('https')
const serveStatic = require('serve-static')
const cors = require('cors')
const helmet = require('helmet')
const nocache = require('nocache')
const cookieParser = require('cookie-parser')
const { ApolloServer, AuthenticationError } = require('apollo-server-express')
const _ = require('lodash/fp')
@ -27,7 +28,8 @@ if (!hostname) {
}
const app = express()
app.use(helmet({ noCache: true }))
app.use(helmet())
app.use(nocache())
app.use(cookieParser())
app.use(express.static(path.resolve(__dirname, '..', '..', 'public')))