PronounsPage/app/plugins/speculationrules.ts

24 lines
754 B
TypeScript

export default defineNuxtPlugin(() => {
useHead({
script: [
{
type: 'speculationrules',
innerHTML: JSON.stringify({
prerender: [
{
where: {
and: [
{ href_matches: '/*' },
{ not: { selector_matches: '.no-prerender' } },
{ not: { selector_matches: '[rel~=nofollow]' } },
],
},
},
],
eagerness: 'moderate',
}),
},
],
});
});