fix: prevent indexing virtual pages

This commit is contained in:
2025-09-25 21:34:37 -04:00
parent e9c92840fc
commit a8c52c91ee

View File

@@ -4,6 +4,7 @@ import type { ThePageFragment } from "#graphql-operations";
const props = defineProps<ThePageFragment>();
if (props.template?.__typename === "Template_VirtualPage") {
useRobotsRule({ noindex: true });
await navigateTo(props.children?.nodes[0]?.uri || "/");
}