Skip to content

Commit

Permalink
fix: .md debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinbao1001 committed Dec 11, 2024
1 parent fc9d66a commit 1eda492
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/templates/meta/runtime.ts.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1eda492

Please sign in to comment.