提交 68e7c002 编写于 作者: fxy060608's avatar fxy060608

fix(ssr): print http server urls

上级 e9c0b8af
......@@ -6,6 +6,7 @@ import {
createServer as createViteServer,
ServerOptions,
ViteDevServer,
printHttpServerUrls,
} from 'vite'
import express from 'express'
import { parseManifestJson } from '@dcloudio/uni-cli-shared'
......@@ -121,7 +122,7 @@ export async function createSSRServer(
}
return new Promise((resolve, reject) => {
const onSuccess = () => {
vite.printUrls()
printHttpServerUrls(server, vite.config)
printStartupDuration(logger)
resolve(vite)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册