In my NextJS project (version 13.2.4), I usually start the app by running:
npm run dev
But there's a new requirement where I need to check for a specific condition before starting the app. If this condition is not met, the app should exit.
The condition involves checking if a certain file exists on the machine running the app. How can I implement this flow?