mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 07:40:33 +00:00
8a22fa333e
external tracing enabled by default for node. this change is potentially breaking demo
14 lines
429 B
TypeScript
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]`')
|
|
}
|
|
}
|
|
})
|