Use case: if a user accidentally removes the APP_MIDDLEWARE export without expecting to, we should give them a heads up. We could do this by always logging the total app-attached middleware count on startup in dev mode, and additionally grepping the file for APP_MIDDLEWARE if the count is zero and logging a big message with steps to remedy the situation.
Use case: if a user accidentally removes the
APP_MIDDLEWAREexport without expecting to, we should give them a heads up. We could do this by always logging the total app-attached middleware count on startup in dev mode, and additionally grepping the file forAPP_MIDDLEWAREif the count is zero and logging a big message with steps to remedy the situation.