chore: fix defineNitroPlugin patch (#9)

This commit is contained in:
Oumar Barry
2023-06-28 20:15:30 +00:00
committed by GitHub
parent e2d37c2efe
commit 470f272183

View File

@ -1,15 +1,5 @@
/**
* 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()
})