how to find out the current NODE_ENV the express app is running under? June 13, 2023 by Tarik Try process.env.NODE_ENV It should do the trick.