chore: fix defineNitroPlugin patch (#9)
This commit is contained in:
@ -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()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user