To make a redirect from www to non-www in Nuxt.js, you can add a server middleware to handle the redirect. First, create a new folder called 'middleware' in the root of your Nuxt.js project. Inside this folder, create a new file called 'redirect.js'. In this file, you can add the logic to redirect from www to non-www.In the 'redirect.js' file, you can use the following code snippet to redirect from www to non-www:
export default function (req, res, next) {
if (req.