server middleware added to nuxt config

Hi all
The docs say "Nuxt will automatically read in any file in the ~/server/middleware to create server middleware for your project."
My question is, should I still added to nuxt.config like this?

server: {
    middleware: ['auth.ts'],
},


Thanks
Was this page helpful?