How To: Execute Node.js Code on Next.js Server Startup
Problem
Imagine there is a function (foo) provided by a third-party package (awesome-pkg) that needs to be called when the Next.js server is starting up and this foo function is using Node.js specific module so it cannot be called directly on the cli...
5fingers.hashnode.dev4 min read