Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I've removed a redirect from Next.config.js but it still is actively redirecting

Tags:

next.js

Can someone explain to me why my next.config.js does not update on changes even after a rerun? And how I can get it to work properly.

like image 344
dankoiDev Avatar asked Oct 21 '25 13:10

dankoiDev


2 Answers

Seems I had to clear the browser cache. Was first evident when I used another browser. I believe the use of permanent:true caused this.

like image 114
dankoiDev Avatar answered Oct 26 '25 19:10

dankoiDev


Please apply npm cache clean --force & also remove .next dir and retry.

like image 40
Naeem Ahmed Avatar answered Oct 26 '25 20:10

Naeem Ahmed