File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ export default {
107
107
sitemap : {
108
108
hostname : BASE_URL
109
109
} ,
110
+
110
111
// Build Configuration: https://go.nuxtjs.dev/config-build
111
112
build : {
112
113
extractCSS : true ,
@@ -115,5 +116,9 @@ export default {
115
116
config . devtool = 'source-map'
116
117
}
117
118
}
118
- }
119
+ } ,
120
+
121
+ serverMiddleware : [
122
+ { path : '/test' , handler : '~/serverMiddleware/ok.js' } ,
123
+ ]
119
124
}
Original file line number Diff line number Diff line change 52
52
<div
53
53
class =" flex items-stretch w-full gap-4 font-mono text-gray-800 dark:text-gray-50"
54
54
>
55
+ <h1 >{{ name }}</h1 >
55
56
<div
56
57
class =" relative flex-1 px-4 py-2 overflow-y-auto border-2 rounded-md dark:border-gray-500 max-h-screen--nav line-number-gutter min-h-80"
57
58
>
@@ -97,6 +98,9 @@ export default {
97
98
copied: false ,
98
99
}
99
100
},
101
+ asyncData () {
102
+ return { name: ' World' }
103
+ },
100
104
mounted () {
101
105
const _diff = this .$route .hash
102
106
const gunzip = pako .ungzip (Buffer .from (undoUrlSafeBase64 (_diff), ' base64' ))
Original file line number Diff line number Diff line change
1
+ export default function handler ( _req , res ) {
2
+ res . end ( 'Everything ok!' )
3
+ }
You can’t perform that action at this time.
0 commit comments