diff --git a/src/runtime/server/plugins/mongoose.db.ts b/src/runtime/server/plugins/mongoose.db.ts index 895f6d3..b5f1187 100644 --- a/src/runtime/server/plugins/mongoose.db.ts +++ b/src/runtime/server/plugins/mongoose.db.ts @@ -1,5 +1,15 @@ +/** + * Due to an upstream bug in Nuxt 3 we need to stub the plugin here, track:https://github.com/nuxt/nuxt/issues/18556 + * */ +import type { NitroApp } from 'nitropack' import { defineMongooseConnection } from '../services/mongoose' +type NitroAppPlugin = (nitro: NitroApp) => void + +function defineNitroPlugin(def: NitroAppPlugin): NitroAppPlugin { + return def +} + export default defineNitroPlugin(() => { defineMongooseConnection() })