mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-16 10:54:49 +00:00
6318438415
Co-authored-by: Daniel Roe <daniel@roe.dev>
15 lines
474 B
TypeScript
15 lines
474 B
TypeScript
import consola from 'consola'
|
|
import { extendPreset, hl, prettyPath } from '../utils'
|
|
import { NitroPreset, NitroContext } from '../context'
|
|
import { node } from './node'
|
|
|
|
export const server: NitroPreset = extendPreset(node, {
|
|
entry: '{{ _internal.runtimeDir }}/entries/server',
|
|
serveStatic: true,
|
|
hooks: {
|
|
'nitro:compiled' ({ output }: NitroContext) {
|
|
consola.success('Ready to run', hl('node ' + prettyPath(output.serverDir) + '/index.mjs'))
|
|
}
|
|
}
|
|
})
|