Skip to content

Commit 4dd8306

Browse files
authored
fix: .md debug mode (#2239)
1 parent b0a681c commit 4dd8306

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/templates/meta/runtime.ts.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const patchRoutes = ({ routes }) => {
1717
const routeMeta = getRouteMetaById(route.id, { syncOnly: true });
1818

1919
if (routeMeta) {
20-
if (process.env.NODE_ENV === 'production' && (route.meta?.frontmatter?.debug || routeMeta.debug)) {
20+
if (process.env.NODE_ENV === 'production' && (route.meta?.frontmatter?.debug || routeMeta.frontmatter?.debug)) {
2121
// hide route in production which set hide frontmatter
2222
delete routes[route.id];
2323
} else {

0 commit comments

Comments
 (0)