Closed sstrubberg closed 5 years ago
This doesn't sound related to Next.js, at least it's not a bug.
It sounds like the nodemon watcher is picking up file changes, maybe the distDir is being written into the server dir 🤔
Hey @timneutkens. Thanks for checking in regarding the issue.
Turns out I was able to fix the endless loop by fixing the distDir
line in my next.config.j file.
I replaced distDir: "design/career",
with distDir: ".design/career",
. No more loops!
^ same as above. I had this error and my dist directory was nested improperly.
add this follow lines in nodemon.json: { "verbose": true, "ignore": ["node_modules", ".next"], "watch": ["server/*/", "server.js"], "ext": "js json" }
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Bug report
Nodemon is in a permanent loop after adding distDir to next.config.js.
next.config.js
server.js
package.json
Expected behavior
It loads fine when I remove the distDir line. Makes me wonder I'm putting it in the wrong spot, but my face hurts from hitting it against the wall :)