Skip to content

Commit fa7fb29

Browse files
authored
fix(preview): move port argument alias to command definition (#1055)
1 parent 9a9c2eb commit fa7fb29

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/nuxi/src/commands/preview.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const command = defineCommand({
2525
...envNameArgs,
2626
...extendsArgs,
2727
...legacyRootDirArgs,
28-
port: getListhenArgs().port,
28+
port: { ...getListhenArgs().port, alias: ['p'] },
2929
...dotEnvArgs,
3030
},
3131
async run(ctx) {
@@ -144,7 +144,6 @@ type ArgsT = Exclude<
144144

145145
function _resolveListenOptions(args: ParsedArgs<ArgsT>) {
146146
const _port = args.port
147-
?? args.p
148147
?? process.env.NUXT_PORT
149148
?? process.env.NITRO_PORT
150149
?? process.env.PORT

0 commit comments

Comments
 (0)