Nuxt/packages/nitro/src/presets/cli.ts
Pooya Parsa 8a22fa333e feat: update preset options
external tracing enabled by default for node. this change is potentially breaking demo
2021-02-22 13:12:59 +01:00

14 lines
429 B
TypeScript

import consola from 'consola'
import { extendPreset, prettyPath } from '../utils'
import { NitroPreset, NitroContext } from '../context'
import { node } from './node'
export const cli: NitroPreset = extendPreset(node, {
entry: '{{ _internal.runtimeDir }}/entries/cli',
hooks: {
'nitro:compiled' ({ output }: NitroContext) {
consola.info('Run with `node ' + prettyPath(output.serverDir) + ' [route]`')
}
}
})