Skip to content

Commit 9aea0c2

Browse files
committed
Also check EXPRESS_ENV
... in addition to the others, to match what we do in the Express init.
1 parent 77ea8f9 commit 9aea0c2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/express/Settings.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ public extension ExpressSettings {
186186
@inlinable
187187
var env : String {
188188
if let v = holder .get("env") as? String { return v }
189+
if let v = process.env["EXPRESS_ENV"] { return v }
189190
if let v = process.env["MACRO_ENV"] { return v }
190191

191192
#if DEBUG

0 commit comments

Comments
 (0)