fix(nuxt): use unhead key for ad-hoc module options (#28088)

This commit is contained in:
Alex Liu 2024-07-11 14:05:47 +08:00 committed by Daniel Roe
parent 8a3c4e302a
commit 449bdf0778
No known key found for this signature in database
GPG Key ID: 3714AB03996F442B

View File

@ -8,6 +8,7 @@ const components = ['NoScript', 'Link', 'Base', 'Title', 'Meta', 'Style', 'Head'
export default defineNuxtModule<NuxtOptions['unhead']>({
meta: {
name: 'meta',
configKey: 'unhead',
},
async setup (options, nuxt) {
const runtimeDir = resolve(distDir, 'head/runtime')