We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
port
1 parent 9a9c2eb commit fa7fb29Copy full SHA for fa7fb29
packages/nuxi/src/commands/preview.ts
@@ -25,7 +25,7 @@ const command = defineCommand({
25
...envNameArgs,
26
...extendsArgs,
27
...legacyRootDirArgs,
28
- port: getListhenArgs().port,
+ port: { ...getListhenArgs().port, alias: ['p'] },
29
...dotEnvArgs,
30
},
31
async run(ctx) {
@@ -144,7 +144,6 @@ type ArgsT = Exclude<
144
145
function _resolveListenOptions(args: ParsedArgs<ArgsT>) {
146
const _port = args.port
147
- ?? args.p
148
?? process.env.NUXT_PORT
149
?? process.env.NITRO_PORT
150
?? process.env.PORT
0 commit comments