Skip to content

Commit

Permalink
fix lint, add .env example, move .env to gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
Jag96 committed Aug 13, 2020
1 parent 2db79ab commit 09d7e9e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .env.example.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**
* Rename this file to `.env` and put your local config in here
*/
REPORT_IDS = '';
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,6 @@ android/app/service-account.json

# CocoaPods
/ios/Pods/

# Local DEV config
/.env
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Credentials: *');
```
5. Run `cp .env.example.js .env` and edit `.env` to have your local config options
## Running the web app 💻
* To run a **Development Server**: `npm run web`
Expand Down
2 changes: 1 addition & 1 deletion ReactWebConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {defa
const webpack2 = interopRequireDefault(webpack);
const dotenv = require('dotenv');

const ReactWebConfig = exports.ReactWebConfig = function ReactWebConfig(path) {
exports.ReactWebConfig = function ReactWebConfig(path) {
const env = (0, dotenv.config)({path}).parsed;
return new webpack2.default.DefinePlugin({
__REACT_WEB_CONFIG__: JSON.stringify(env)
Expand Down

0 comments on commit 09d7e9e

Please sign in to comment.