feat: nuxt basics

This commit is contained in:
2025-10-24 12:55:14 +02:00
parent 51df03a76c
commit f1468ede1a
17 changed files with 243 additions and 21 deletions

View File

@@ -0,0 +1,3 @@
export default defineEventHandler(async (event) => {
// ... Do whatever you want here
})

View 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) })
})