Skip to content

Commit b091253

Browse files
atinuxfarnabaz
andauthoredFeb 20, 2025··
fix(llms): add missing import for defineNitroPlugin (#3170)
--------- Co-authored-by: Farnabaz <farnabaz@gmail.com>
1 parent 84e9d2c commit b091253

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/features/llms/runtime/server/content-llms.plugin.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ import { withBase } from 'ufo'
33
import { onLLMsGenerate, onLLMsGenerateFull } from 'nuxt-llms/runtime'
44
import type { ContentLLMSCollectionSection } from './utils'
55
import { createDocumentGenerator, prepareContentSections } from './utils'
6+
// @ts-expect-error - typecheck does not detect defineNitroPlugin in imports
7+
import { defineNitroPlugin } from '#imports'
68

7-
// @ts-expect-error - typecheck does not derect
89
export default defineNitroPlugin(() => {
910
onLLMsGenerate(async (event, options) => {
1011
prepareContentSections(options.sections)

0 commit comments

Comments
 (0)
Please sign in to comment.