File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -67,12 +67,6 @@ async function start () {
67
67
await next ( )
68
68
} )
69
69
70
- const SESSION_CONFIG = {
71
- key : consts . SESS_KEY
72
- }
73
- // session for flash messages (uses signed session cookies, with no server storage)
74
- app . use ( session ( SESSION_CONFIG , app ) )
75
-
76
70
const nuxt = new Nuxt ( config )
77
71
nuxt . showOpen = ( ) => {
78
72
const _host = host === '0.0.0.0' ? 'localhost' : host
@@ -102,6 +96,13 @@ async function start () {
102
96
await nuxtRender ( ctx )
103
97
}
104
98
} )
99
+
100
+ const SESSION_CONFIG = {
101
+ key : consts . SESS_KEY
102
+ }
103
+ // session for flash messages (uses signed session cookies, with no server storage)
104
+ app . use ( session ( SESSION_CONFIG , app ) )
105
+
105
106
// return response time in X-Response-Time header
106
107
app . use ( async function responseTime ( ctx , next ) {
107
108
const t1 = Date . now ( )
@@ -137,7 +138,6 @@ async function start () {
137
138
await compose ( api . middleware ) ( ctx )
138
139
break
139
140
}
140
- await next ( )
141
141
} )
142
142
143
143
app . listen ( port , host )
You can’t perform that action at this time.
0 commit comments