I have an existing application that was initially deployed on , but now I want to change the domain to https://example.com.
What is the best way to set up redirection for this domain change?
I have attempted the following methods:
async redirects() {
return [
{
source: '/help',
has: [
{
type: 'host',
value: '.*\\..*\\..*'
},
],
permanent: false,
destination: 'https://example.com'
}
]
},
The above code snippet has been added into my next.config.js file.