chore(nitro): show middleware table only in debug mode

This commit is contained in:
Pooya Parsa 2021-05-24 13:27:15 +02:00
parent 9fcd746c72
commit 2e0fce88a6

View File

@ -16,7 +16,7 @@ export function middleware (getMiddleware: () => ServerMiddleware[]) {
load: () => { load: () => {
const middleware = getMiddleware() const middleware = getMiddleware()
if (!stdenv.test) { if (stdenv.debug) {
const dumped = dumpMiddleware(middleware) const dumped = dumpMiddleware(middleware)
if (dumped !== lastDump) { if (dumped !== lastDump) {
lastDump = dumped lastDump = dumped