From 4dd8306811ee97257a7d1cf9aae867c279a943c6 Mon Sep 17 00:00:00 2001 From: Jinbao1001 Date: Thu, 12 Dec 2024 11:34:22 +0800 Subject: [PATCH] fix: .md debug mode (#2239) --- src/templates/meta/runtime.ts.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/templates/meta/runtime.ts.tpl b/src/templates/meta/runtime.ts.tpl index 4054e3acc..1bd2d22d4 100644 --- a/src/templates/meta/runtime.ts.tpl +++ b/src/templates/meta/runtime.ts.tpl @@ -17,7 +17,7 @@ export const patchRoutes = ({ routes }) => { const routeMeta = getRouteMetaById(route.id, { syncOnly: true }); if (routeMeta) { - if (process.env.NODE_ENV === 'production' && (route.meta?.frontmatter?.debug || routeMeta.debug)) { + if (process.env.NODE_ENV === 'production' && (route.meta?.frontmatter?.debug || routeMeta.frontmatter?.debug)) { // hide route in production which set hide frontmatter delete routes[route.id]; } else {