I'm developing a NEXT JS project and can't find a solution for a twice rendering app!
Problem
After adding rewrites to next.config.js
, App is rendered twice. If remove, rendred once.
next.config.js
async rewrites() {
return [
{
source: '/about',
destination: '/',
},
]
},
_app.js
function MyApp() {
console.log('App render');
return (<></>);
}
export default MyApp