Skip to content

Commit 3fe1ff9

Browse files
committedOct 22, 2024··
fix(preview): show more accurate message with custom --dotenv
resolves #383
1 parent c263859 commit 3fe1ff9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/commands/preview.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export default defineCommand({
9494
: existsSync(cwd)
9595
if (envExists) {
9696
consola.info(
97-
'Loading `.env`. This will not be loaded when running the server in production.',
97+
`Loading \`${ctx.args.dotenv || '.env'}\`. This will not be loaded when running the server in production.`,
9898
)
9999
await setupDotenv({ cwd, fileName: ctx.args.dotenv })
100100
}

0 commit comments

Comments
 (0)
Please sign in to comment.