I'm using next.config in order to redirect non www requests.
redirects: async () => [
{
source: '/:path*',
has: [{ type: 'host', value: 'example.com' }],
destination: 'https://www.example.com'/:path*',
permanent: true,
},
]
Now as you can see permanent property set to true which returns status code 308. Is there any way to change the status code to - 301?
Change
permanent
value tofalse