Revert "chore: fix defineNitroPlugin patch (#9)"

This reverts commit 470f272183.
This commit is contained in:
Arash Sheyda
2023-07-09 14:08:05 +03:00
parent 40b8ca91ee
commit 4647fbda16

View File

@ -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()
})