Skip to content

Commit

Permalink
fix: session missing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkdo committed Oct 30, 2017
1 parent 6a49b02 commit a01576b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ async function start () {
key: consts.SESS_KEY
}
// session for flash messages (uses signed session cookies, with no server storage)
app.use(session(SESSION_CONFIG, app)) // note [email protected] is v1 middleware which generates deprecation notice
app.use(session(SESSION_CONFIG, app))

const nuxt = new Nuxt(config)
nuxt.showOpen = () => {
Expand Down Expand Up @@ -137,6 +137,7 @@ async function start () {
await compose(api.middleware)(ctx)
break
}
await next()
})

app.listen(port, host)
Expand Down

0 comments on commit a01576b

Please sign in to comment.