I believe the issue is Heroku isn’t applying the NODE_ENV variable (I just recently modified those docs and made the assumption it automatically set NODE_ENV=production can you adjust your heroku settings and set the environment variable?
If that works I’ll adjust our documentation.