We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
nuxt
Learn more about funding links in repositories.
Report abuse
defineNitroPlugin
1 parent 84e9d2c commit b091253Copy full SHA for b091253
src/features/llms/runtime/server/content-llms.plugin.ts
@@ -3,8 +3,9 @@ import { withBase } from 'ufo'
3
import { onLLMsGenerate, onLLMsGenerateFull } from 'nuxt-llms/runtime'
4
import type { ContentLLMSCollectionSection } from './utils'
5
import { createDocumentGenerator, prepareContentSections } from './utils'
6
+// @ts-expect-error - typecheck does not detect defineNitroPlugin in imports
7
+import { defineNitroPlugin } from '#imports'
8
-// @ts-expect-error - typecheck does not derect
9
export default defineNitroPlugin(() => {
10
onLLMsGenerate(async (event, options) => {
11
prepareContentSections(options.sections)
0 commit comments