mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-28 19:53:17 +00:00
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]`')
|
|
}
|
|
}
|
|
})
|