mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 09:27:13 +00:00
Merge branch 'main' into docs/kit
This commit is contained in:
commit
32427915ca
@ -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;`
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user