We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 033ff13 commit 1755f62Copy full SHA for 1755f62
CHANGELOG.md
@@ -1,10 +1,8 @@
1
# Unreleased
2
3
-## Added
4
-
5
## Fixed
6
7
-## Changed
+- Handle missing `.env` or `.env.local`
8
9
# 0.5.33-alpha (2022-09-22 / c37380a)
10
@@ -44,4 +42,4 @@ Initial release
44
42
- lambdaisland.classpath integration
45
43
- Support for cider-nrepl, refactor-nrepl
46
- Basic support for shadow-cljs cljs nREPL-base REPL
47
-- Auto-connect for Emacs
+- Auto-connect for Emacs
src/lambdaisland/launchpad/env.clj
@@ -83,5 +83,8 @@
83
84
(defn watch-handlers []
85
(let [h (dotenv-watch-handler [".env" ".env.local"])]
86
- {".env" h
87
- ".env.local" h}))
+ (cond-> {}
+ (exists? ".env")
88
+ (assoc ".env" h)
89
+ (exists? ".env.local")
90
+ (assoc ".env.local" h))))
0 commit comments