diff --git a/packages/nitro/src/compat.ts b/packages/nitro/src/compat.ts index b5d7cb3aef..da26023eae 100644 --- a/packages/nitro/src/compat.ts +++ b/packages/nitro/src/compat.ts @@ -15,7 +15,7 @@ export default function nuxt2CompatModule () { // Create contexts const nitroContext = getNitroContext(nuxt.options, nuxt.options.nitro || {}) - const nitroDevContext = getNitroContext(nuxt.options, { preset: 'local' }) + const nitroDevContext = getNitroContext(nuxt.options, { preset: 'dev' }) // Connect hooks nuxt.addHooks(nitroContext.nuxtHooks) diff --git a/packages/nitro/src/presets/local.ts b/packages/nitro/src/presets/dev.ts similarity index 63% rename from packages/nitro/src/presets/local.ts rename to packages/nitro/src/presets/dev.ts index 4afa6372a2..151e6e56b5 100644 --- a/packages/nitro/src/presets/local.ts +++ b/packages/nitro/src/presets/dev.ts @@ -2,15 +2,13 @@ import { extendPreset } from '../utils' import { NitroPreset } from '../context' import { node } from './node' -export const local: NitroPreset = extendPreset(node, { - entry: '{{ _internal.runtimeDir }}/entries/local', +export const dev: NitroPreset = extendPreset(node, { + entry: '{{ _internal.runtimeDir }}/entries/dev', output: { serverDir: '{{ _nuxt.buildDir }}/nitro' }, minify: false, - externals: { - trace: false - }, + externals: { trace: false }, inlineChunks: true, timing: false, sourceMap: true diff --git a/packages/nitro/src/presets/index.ts b/packages/nitro/src/presets/index.ts index 8f771fdc93..35b743eb4e 100644 --- a/packages/nitro/src/presets/index.ts +++ b/packages/nitro/src/presets/index.ts @@ -6,7 +6,7 @@ export * from './firebase' export * from './lambda' export * from './netlify' export * from './node' -export * from './local' +export * from './dev' export * from './server' export * from './cli' export * from './vercel' diff --git a/packages/nitro/src/runtime/entries/local.ts b/packages/nitro/src/runtime/entries/dev.ts similarity index 100% rename from packages/nitro/src/runtime/entries/local.ts rename to packages/nitro/src/runtime/entries/dev.ts