Skip to content

Commit

Permalink
feat: add support nuxt 4 (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
blqke authored Jul 18, 2024
1 parent ec3711d commit 4e8a9d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default defineNuxtModule<ModuleOptions>({
async setup(options, nuxt) {
const { resolve } = createResolver(import.meta.url)

const files = await scanHandlers(resolve(nuxt.options.srcDir, `server/${options.jobsDir}`))
const files = await scanHandlers(resolve(nuxt.options.serverDir, options.jobsDir))
const runtimeDir = fileURLToPath(new URL('./runtime', import.meta.url))

nuxt.options.build.transpile.push(runtimeDir)
Expand Down

0 comments on commit 4e8a9d9

Please sign in to comment.