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 dfcaa78 commit 2b3d32e
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 koa-session@3.4.0 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 2b3d32e

Please sign in to comment.