mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 07:40:33 +00:00
chore(nitro): show middleware table only in debug mode
This commit is contained in:
parent
9fcd746c72
commit
2e0fce88a6
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user