Merge branch 'main' into docs/kit

This commit is contained in:
Andrey Yolkin 2023-08-16 13:28:12 +03:00 committed by GitHub
commit 32427915ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,13 +60,8 @@ export default defineNuxtModule({
if (!nuxt.options.experimental.headNext) { if (!nuxt.options.experimental.headNext) {
return 'export default []' return 'export default []'
} }
// TODO don't use HashHydrationPlugin for SPA return `import { CapoPlugin } from '@unhead/vue';
return `import { CapoPlugin, HashHydrationPlugin } from '@unhead/vue' export default process.server ? [CapoPlugin({ track: true })] : [];`
const plugins = [HashHydrationPlugin()];
if (process.server) {
plugins.push(CapoPlugin({ track: true }));
}
export default plugins;`
} }
}) })