to make sure express is operating as expressly as possible in production, I set NODE_ENV=production
BUT, this seems to turn errors into "Internal Server Error", rather than providing a stack trace. I would rather have users see the stack trace, so that they can tell me the stack trace when they get an error, rather than say "it says 'Internal Server Error'".
how do I tell express to do this, while still keeping in production mode?.. I guess I use app.use(express.errorHandler({ dumpExceptions: true, showStack: true })), which apparently also styles the errors.. not sure I want that, but it'll do
ok, let's make sure nar-nar still works..
Oddly enough, this error screen is an indicator of success, rather than failure..
No comments:
Post a Comment