fix: update nitro preset for dev

This commit is contained in:
Pooya Parsa 2021-02-22 20:11:54 +01:00
parent 52d28c041a
commit 040e14f2b6

View File

@ -12,7 +12,7 @@ import type { Nuxt } from './index'
export function initNitro (nuxt: Nuxt) { export function initNitro (nuxt: Nuxt) {
// Create contexts // Create contexts
const nitroContext = getNitroContext(nuxt.options, nuxt.options.nitro || {}) const nitroContext = getNitroContext(nuxt.options, nuxt.options.nitro || {})
const nitroDevContext = getNitroContext(nuxt.options, { preset: 'local' }) const nitroDevContext = getNitroContext(nuxt.options, { preset: 'dev' })
nuxt.server = createDevServer(nitroDevContext) nuxt.server = createDevServer(nitroDevContext)