Errors
NUXT_AUTH_UNSUPPORTED_DIALECT: Unsupported database dialect
Select sqlite, postgresql, or mysql for NuxtHub auth schema generation.
Example error
[NUXT_AUTH_UNSUPPORTED_DIALECT] Unsupported database dialect: postgres
Why this happens
NuxtHub schema generation received a missing or unsupported dialect. For example, the NuxtHub dialect is postgresql, even though some database adapters use the shorter name pg.
How to fix it
Configure hub.db with a supported dialect: sqlite, postgresql, or mysql.
Use the NuxtHub dialect name in hub.db:
nuxt.config.ts
export default defineNuxtConfig({
hub: { db: { dialect: 'postgresql' } },
})
The other supported values are sqlite and mysql. This option describes the schema dialect; it does not replace the connection configuration required by your database.
Verify the fix
Run pnpm exec nuxt prepare and check for a generated schema matching the configured dialect.
See Generate a database schema or return to the error reference.