Next.js Discord

Discord Forum

Changes to a file not applying, have to manually delete .next folder?

Unanswered
Pacific saury posted this in #help-forum
Open in Discord
Pacific sauryOP
I have a file that when I save it, it shows Compiled in Xms and the page reloads, but my changes do not apply. I have to manually delete the .next folder and then when I restart my server the change is there.

This is in a route file. If I change one of my other routes, I can see that a message like Compiled /api/users in 324ms (1970 modules) but for my api/users-edit file it does not give me that.

Any idea why a single file would not be triggering itself to rebuild when saving a change, but it still reloads?

0 Replies