-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(dev,preview): correctly infer .env
filename from --dotenv
arg
#381
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will running npx nuxi preview --dotenv
continue to work as expected (ie. a non-breaking change)?
--dotenv
arg--dotenv
arg
Open in Stackblitz • nuxt-cli-playground
commit: |
Bundle StatsHey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle. As this PR is updated, I'll keep you updated on how the bundle size is impacted. Total
Changeset
View detailed bundle breakdownAdded No assets were added Removed No assets were removed Bigger
Smaller No assets were smaller Unchanged
|
--dotenv
arg.env
filename from --dotenv
arg
logger.error(`Cannot find \`${envFileName}\`.`) | ||
process.exit(1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we just warn in this case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
checking, this doesn't seem to resolved the linked issue - .env
is used as a the 'fallback' instead of .env.local
.
resolves #360
This corrects types for the
--dotenv
flag and sets the default value at source.