dankoiDev
dankoiDev

Reputation: 123

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

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.

Upvotes: 4

Views: 741

Answers (3)

Giraldi
Giraldi

Reputation: 17291

npm cache clean --force and the "Forget About This Site" option in Firefox History don't help. I had to resort to switching to a different Firefox Container.

Upvotes: 0

dankoiDev
dankoiDev

Reputation: 123

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.

Upvotes: 4

Naeem Ahmed
Naeem Ahmed

Reputation: 266

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

Upvotes: 1

Related Questions