Skip to content
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

feat(cli): automatically load .env from current dir #972

Merged
merged 1 commit into from
Jun 19, 2023

Conversation

QuiiBz
Copy link
Member

@QuiiBz QuiiBz commented Jun 19, 2023

About

Also automatically load .env from the current directory if we're specifying a path that is a file:

# Loads ./.env
lagon dev index.ts
# Loads ./.env
lagon dev src/index.ts
# Loads ./myproject/.env
lagon dev ./myproject

@changeset-bot
Copy link

changeset-bot bot commented Jun 19, 2023

🦋 Changeset detected

Latest commit: 40cff14

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@lagon/cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Jun 19, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
dashboard ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 19, 2023 7:21am
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 19, 2023 7:21am
storybook ✅ Ready (Inspect) Visit Preview Jun 19, 2023 7:21am
www ✅ Ready (Inspect) Visit Preview Jun 19, 2023 7:21am

@QuiiBz QuiiBz enabled auto-merge (squash) June 19, 2023 07:23
@QuiiBz QuiiBz merged commit 5dc7bd9 into main Jun 19, 2023
12 checks passed
@QuiiBz QuiiBz deleted the feat/cli-env-file-auto branch June 19, 2023 07:28
@QuiiBz QuiiBz mentioned this pull request Jun 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant