chore: cleanup, node14 and new admin default
This commit is contained in:
parent
c7c18633d7
commit
89bb9a8f25
244 changed files with 3957 additions and 39487 deletions
|
|
@ -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')))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue