- lib/guard.ts: pure checks (isNoindex with Nitro route-rule patterns, findOffenders over the app's ssr flag, every merged route rule, .client.vue pages and experimental.inlineRouteRules) - module options seo.noindexRoutes and seo.indexable; declared noindex routes get X-Robots-Tag: noindex, nofollow through their route rule - a production build fails with the D-70 message; nuxt dev and nuxt prepare only warn - testing/guard-check.mjs builds four fixture apps (guard:check)
8 lines
275 B
TypeScript
8 lines
275 B
TypeScript
// Build-guard fixture (testing/guard-check.mjs): a .client.vue page
|
|
// (app/pages/panel.client.vue) is not rendered on the server. The build
|
|
// must fail with the D-70 message.
|
|
export default defineNuxtConfig({
|
|
extends: ['../../..'],
|
|
compatibilityDate: '2025-07-15',
|
|
})
|