diff --git a/src/helplers/scan-folder.ts b/src/helplers/scan-folder.ts index b41271a..5d5b37d 100644 --- a/src/helplers/scan-folder.ts +++ b/src/helplers/scan-folder.ts @@ -4,7 +4,7 @@ import { createResolver, useNuxt } from "@nuxt/kit"; export const scanFolder = async (path: string): Promise => { const nuxt = useNuxt(); const { resolve } = createResolver(import.meta.url); - const resolvedPath = resolve(nuxt.options.srcDir, path); + const resolvedPath = resolve(nuxt.options.rootDir, path); const files: string[] = []; diff --git a/src/templates.ts b/src/templates.ts index 79c3cbb..0640130 100644 --- a/src/templates.ts +++ b/src/templates.ts @@ -40,7 +40,6 @@ export const createTemplateNuxtPlugin = ( ) => { const nitroPlugin = ` import { consola } from "consola"; -import { defineNitroPlugin } from "#imports"; import { $useConcierge } from "#concierge"; ${importFiles(queues, "queue")} ${importFiles(workers, "worker")}