lagonapp / lagon

Deploy Serverless Functions at the Edge. Current status: Alpha
https://lagon.app
GNU Affero General Public License v3.0
1.33k stars 62 forks source link

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

Closed QuiiBz closed 1 year ago

QuiiBz commented 1 year ago

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[bot] commented 1 year ago

🦋 Changeset detected

Latest commit: 40cff14c6d2fc9981c5b8aae5f060ff68280fd30

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[bot] commented 1 year ago

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