I got an Error when using Rewrites in NextJS by using references in NextJS Documentation
I tried to reinstall node_modules but it still not working
Enviroment Variables is working, but rewrites feature is not working
This is my next.config.js
module.exports = {
env: {
APPNAME: 'NextJS Exercise!!!',
},
async rewrites() {
return [
{
source: '/login',
destination: '/auth/login',
},
]
},
}
This is the error what i got
TypeError: (0 , _resolveRewrites.default) is not a function