useSiteConfig()
How to use Site Config within Nitro.
Same as useSiteConfig but you will need to provide the request context.
Usage
serverMiddleware.ts
import { defineEventHandler } from '#imports'
export default defineEventHandler((e) => {
const siteConfig = useSiteConfig(e)
console.log(siteConfig.name)
})
Did this page help you?