fix(nuxi): respect --port arg (#919)

This commit is contained in:
Anthony Fu 2021-10-13 18:33:21 +08:00 committed by GitHub
parent 81293ff195
commit 8f38280978
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,8 @@ export default defineNuxtCommand({
const server = createServer()
const listener = await server.listen({
clipboard: args.clipboard,
open: args.open || args.o
open: args.open || args.o,
port: args.port || args.p
})
const rootDir = resolve(args._[0] || '.')