In the configuration file next.config.js
, I've included the following code:
module.exports = withBundleAnalyzer({
pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'md', 'mdx'],
experimental: {
modern: true,
},
webpack: (config, options) => {
...
}
})
I am looking to implement a redirection from /
to the /about
page.
The Next.js documentation provides guidance on how to set up redirects:
module.exports = {
async redirects() {
return [
{
source: '/',
destination: '/about',
permanent: true
}
]
}
}
Now, the question is how do I implement these redirects while using @next/bundle-analyzer
?