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 {