Skip to content

Commit 1c66b13

Browse files
committed
fix(identity): fix useEdgeDbIdentity runtime import
1 parent a21fd56 commit 1c66b13

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/module.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { existsSync } from 'node:fs'
2-
import { addComponentsDir, addImportsDir, addPlugin, addServerHandler, addServerImports, addServerPlugin, createResolver, defineNuxtModule } from '@nuxt/kit'
2+
import { addComponentsDir, addImports, addImportsDir, addPlugin, addServerHandler, addServerImports, addServerPlugin, createResolver, defineNuxtModule } from '@nuxt/kit'
33
import { createConsola } from 'consola'
44
import { join } from 'pathe'
55
import chalk from 'chalk'
@@ -574,7 +574,12 @@ export default defineNuxtModule<ModuleOptions>({
574574
path: resolveLocal('./runtime/components/auth/base'),
575575
global: true,
576576
})
577-
addImportsDir(resolveLocal('./runtime/composables'))
577+
addImports([
578+
{
579+
from: resolveLocal('./runtime/composables/useEdgeDbIdentity'),
580+
name: 'useEdgeDbIdentity',
581+
},
582+
])
578583

579584
// Server
580585
addServerImports([

0 commit comments

Comments
 (0)