fix nitro client import

This commit is contained in:
Pooya Parsa 2021-06-18 11:53:39 +02:00
parent 62b19c63f3
commit 98a0c727c9

View File

@ -22,7 +22,7 @@ export function initNitro (nuxt: Nuxt) {
// Add nitro client plugin (to inject $fetch helper)
nuxt.hook('app:resolve', (app) => {
app.plugins.push({ src: require.resolve('@nuxt/nitro/dist/runtime/app/nitro.client') })
app.plugins.push({ src: '@nuxt/nitro/dist/runtime/app/nitro.client' })
})
// Expose process.env.NITRO_PRESET