I have a Next.JS react project that has the following structure
| - pages/
| - components
| - etc...
And the run configuration I use to run my dev server, as according to the package.json, is
NODE_ENV=development PORT=3000 node server.js
But whenever I load a page, and sometimes seemingly randomly, WebStorm starts reindexing again. It doesn't index the entire thing, but it takes 5-10 seconds usually to reindex, and during this a lot of features don't work.
Why is it doing this? I have already tried invalidating caches/restarting. That didn't fix anything.