Description
@onmax/nuxt-better-auth generates .nuxt/better-auth/database.mjs that imports from ../hub/db.mjs:
import { db, schema } from '../hub/db.mjs'
NuxtHub 0.10.5 no longer generates .nuxt/hub/db.mjs. It now exports from @nuxthub/db directly.
Error
Error: Cannot find module '/path/to/.nuxt/hub/db.mjs' imported from /path/to/.nuxt/better-auth/database.mjs
Workaround
Create shim manually at .nuxt/hub/db.mjs:
export { db, schema } from '@nuxthub/db'
Versions
@onmax/nuxt-better-auth: 0.0.2-alpha.16
@nuxthub/core: 0.10.5
nuxt: 4.2.2
Expected
The generated database.mjs should import from @nuxthub/db instead of the local build path.