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 // 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' })
// Connect hooks // Connect hooks
nuxt.addHooks(nitroContext.nuxtHooks) nuxt.addHooks(nitroContext.nuxtHooks)

View File

@ -2,15 +2,13 @@ import { extendPreset } from '../utils'
import { NitroPreset } from '../context' import { NitroPreset } from '../context'
import { node } from './node' import { node } from './node'
export const local: NitroPreset = extendPreset(node, { export const dev: NitroPreset = extendPreset(node, {
entry: '{{ _internal.runtimeDir }}/entries/local', entry: '{{ _internal.runtimeDir }}/entries/dev',
output: { output: {
serverDir: '{{ _nuxt.buildDir }}/nitro' serverDir: '{{ _nuxt.buildDir }}/nitro'
}, },
minify: false, minify: false,
externals: { externals: { trace: false },
trace: false
},
inlineChunks: true, inlineChunks: true,
timing: false, timing: false,
sourceMap: true sourceMap: true

View File

@ -6,7 +6,7 @@ export * from './firebase'
export * from './lambda' export * from './lambda'
export * from './netlify' export * from './netlify'
export * from './node' export * from './node'
export * from './local' export * from './dev'
export * from './server' export * from './server'
export * from './cli' export * from './cli'
export * from './vercel' export * from './vercel'