middleware auth.js generate error
[issue link]https://nuxtjs.org/guide/routing/#middleware
export default function (context) {
context.userAgent = context.isServer ? context.req.headers['user-agent'] : navigator.userAgent
}
copy this code in you framwork run generate
context.userAgent is undefined
not work in nginx and github