FoalTS / foal

Full-featured Node.js framework, with no complexity. 🚀 Simple and easy to use, TypeScript-based and well-documented.
https://foalts.org/
MIT License
1.9k stars 140 forks source link

Support spaces in .env #1182

Closed safazi closed 1 year ago

safazi commented 1 year ago

With

Env.get('PORT')
PORT=8080

Returns 8080, but

PORT = 8080

Returns undefined

LoicPoullain commented 1 year ago

Thank you for reporting this.

Indeed the configuration system didn't work when there were spaces around the key name. The fix has been merged. It will be released with v3.1.