Update: there is now better ways of configuring environment variables in Next.js since this blog post was published. See the link below. Thanks Loren Sands-Ramshaw!
I recently have worked on projects, some using Node.js 7, and others requiring the older version of 4. (It was released in September 2015. So old…)