fix(nuxt): use internal:nuxt namespace

This commit is contained in:
Daniel Roe 2023-08-04 08:54:09 +01:00
parent 3722325220
commit 9b0d371b01

View File

@ -275,9 +275,9 @@ export async function initNitro (nuxt: Nuxt & { _nitro?: Nitro }) {
// Set prerender-only options
nitro.options._config.storage ||= {}
nitro.options._config.storage['internal:nitro:prerender'] = { driver: 'memory' }
nitro.options._config.storage['internal:nitro:prerender:island'] = { driver: 'lruCache', max: 1000 }
nitro.options._config.storage['internal:nitro:prerender:payload'] = { driver: 'lruCache', max: 1000 }
nitro.options._config.storage['internal:nuxt:prerender'] = { driver: 'memory' }
nitro.options._config.storage['internal:nuxt:prerender:island'] = { driver: 'lruCache', max: 1000 }
nitro.options._config.storage['internal:nuxt:prerender:payload'] = { driver: 'lruCache', max: 1000 }
// Expose nitro to modules and kit
nuxt._nitro = nitro