Skip to content

Commit

Permalink
fix(preview): show more accurate message with custom --dotenv
Browse files Browse the repository at this point in the history
resolves #383
  • Loading branch information
danielroe committed Oct 22, 2024
1 parent c263859 commit 3fe1ff9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default defineCommand({
: existsSync(cwd)
if (envExists) {
consola.info(
'Loading `.env`. This will not be loaded when running the server in production.',
`Loading \`${ctx.args.dotenv || '.env'}\`. This will not be loaded when running the server in production.`,
)
await setupDotenv({ cwd, fileName: ctx.args.dotenv })
}
Expand Down

0 comments on commit 3fe1ff9

Please sign in to comment.