Nuxt/packages/nitro/src/presets/server.ts

17 lines
497 B
TypeScript
Raw Normal View History

2020-11-20 00:16:31 +00:00
import consola from 'consola'
import { extendPreset, hl, prettyPath } from '../utils'
import { SigmaPreset, SigmaContext } from '../context'
import { node } from './node'
export const server: SigmaPreset = extendPreset(node, {
entry: '{{ _internal.runtimeDir }}/entries/server',
externals: false,
inlineChunks: false,
timing: true,
hooks: {
'sigma:compiled' ({ output }: SigmaContext) {
consola.success('Ready to run', hl('node ' + prettyPath(output.serverDir)))
}
}
})