chore(presets): rename local to dev

This commit is contained in:
Pooya Parsa 2021-02-22 12:34:27 +01:00
parent 5e6fb802f3
commit eebdb2870a
4 changed files with 5 additions and 7 deletions

View File

@ -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)

View File

@ -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

View File

@ -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'