Here is the current configuration in my next.config.js file:
// next.config.js
module.exports = {
async rewrites() {
return [
{
source: '/results',
destination: 'https://mywebsite.com/results',
},
];
},
};
Based on the Nextjs rewrites documentation (https://nextjs.org/docs/api-reference/next.config.js/rewrites#rewriting-to-an-external-url), when visiting , the page content should be rewritten to match the contents of .
However, instead of getting the expected result, I encounter an error message saying "localhost redirected you too many times".
Does anyone have any insights into what might be causing this issue?