mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix nitro client import
This commit is contained in:
parent
62b19c63f3
commit
98a0c727c9
@ -22,7 +22,7 @@ export function initNitro (nuxt: Nuxt) {
|
|||||||
|
|
||||||
// Add nitro client plugin (to inject $fetch helper)
|
// Add nitro client plugin (to inject $fetch helper)
|
||||||
nuxt.hook('app:resolve', (app) => {
|
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
|
// Expose process.env.NITRO_PRESET
|
||||||
|
Loading…
Reference in New Issue
Block a user