From 4647fbda160d0103b53bbda9b00d0d461a40e12e Mon Sep 17 00:00:00 2001 From: Arash Sheyda Date: Sun, 9 Jul 2023 14:08:05 +0300 Subject: [PATCH] Revert "chore: fix defineNitroPlugin patch (#9)" This reverts commit 470f272183196c63855dd4d5a442304b58799cb3. --- src/runtime/server/plugins/mongoose.db.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) 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() })