Replies: 2 comments 3 replies
-
Here's stack traces for top-level instance creation, normal middleware call, and during a request handling:
Looking for I also logged |
Beta Was this translation helpful? Give feedback.
1 reply
-
Maybe we could use app._router.stack? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to add a validation check that looks for things like this https://stackoverflow.com/questions/68503106/is-it-possible-to-use-app-use-inside-the-if-else-statement-in-express and https://stackoverflow.com/questions/77945846/how-to-add-dynamically-windowms-and-max-value-in-ratelimit-using-express-rate-li/77957023 and then logs a warning that it should be created at the top-level, not in response to a request.
I'm not entirely sure how to do this, though.
this
could be helpful here?Beta Was this translation helpful? Give feedback.
All reactions