fix(nitro): rename cold start -> nitro start (#3528)

This commit is contained in:
Daniel Roe 2022-03-07 10:34:45 +00:00 committed by GitHub
parent 78761c236b
commit 398b311ad6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ export default {
```bash
$ node .output/server/index.mjs
> Cold Start (3ms)
> Nitro Start (3ms)
Listening on http://localhost:3000
> Load chunks/nitro/static (0ms)
> Load chunks/app/render (1ms)

View File

@ -33,7 +33,7 @@ export function timing (_opts: Options = {}): Plugin {
let name = chunk.fileName || ''
name = name.replace(extname(name), '')
const logName = name === 'index' ? 'Cold Start' : ('Load ' + name)
const logName = name === 'index' ? 'Nitro Start' : ('Load ' + name)
return {
code: (chunk.isEntry ? HELPERIMPORT : '') + `${TIMING}.logStart('${logName}');` + code + `;${TIMING}.logEnd('${logName}');`,