-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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(docz-core): expose filtered env variables #140
Conversation
Add dotenv to support reading .env files Expose env varables to browser which start with REACT_APP_ ANGULAR_APP_ VUE_APP_ NODE_Add dotenv
|
||
// https://github.com/bkeepers/dotenv#what-other-env-files-can-i-use | ||
const dotenvFiles = [ | ||
`$dotenv}.${NODE_ENV}.local`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing {
here after $
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😱 Sure
@@ -0,0 +1,88 @@ | |||
import fs from 'fs' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please, move this file inside to src/config
to be together with the paths.ts
file...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
* feat(docz-core): expose filtered env variables (#140) * refactor(docz-core): support for env config
Description
Add dotenv to support reading .env files
Expose env varables to browser which start with
REACT_APP_
ANGULAR_APP_
VUE_APP_
NODE_
Review
Pre-merge checklist
Screenshots