mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
chore(presets): rename local to dev
This commit is contained in:
parent
5e6fb802f3
commit
eebdb2870a
@ -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)
|
||||
|
@ -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
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user