feat: nuxt basics
This commit is contained in:
7
front-nuxt/server/plugins/define-metas.ts
Normal file
7
front-nuxt/server/plugins/define-metas.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export default defineNitroPlugin((nitroApp) => {
|
||||
nitroApp.hooks.hook('render:html', (html, { event }) => {
|
||||
html.head.push(`<meta name="description" content="This is an example description." />`)
|
||||
})
|
||||
// You can also intercept the response here.
|
||||
// nitroApp.hooks.hook('render:response', (response, { event }) => { console.log(response) })
|
||||
})
|
||||
Reference in New Issue
Block a user