-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
324 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Authors Haven - A Social platform for the creative at heart. | ||
|
||
<a href="https://codeclimate.com/github/andela/ah-commando-frontend/test_coverage"><img src="https://api.codeclimate.com/v1/badges/d95f06918a6c2beae060/test_coverage" /></a> [![Build Status](https://travis-ci.org/andela/ah-commando-frontend.svg?branch=develop)](https://travis-ci.org/andela/ah-commando-frontend) | ||
<a href="https://codeclimate.com/github/andela/ah-commando-frontend/test_coverage"><img src="https://api.codeclimate.com/v1/badges/d95f06918a6c2beae060/test_coverage" /></a> | ||
[![Build Status](https://travis-ci.org/andela/ah-commando-frontend.svg?branch=develop)](https://travis-ci.org/andela/ah-commando-frontend) | ||
|
||
[![Coverage Status](https://coveralls.io/repos/github/andela/ah-commando-frontend/badge.svg?branch=bg/168380301-fix-env-issues)](https://coveralls.io/github/andela/ah-commando-frontend?branch=bg/168380301-fix-env-issues) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,22 @@ | ||
const { DefinePlugin } = require('webpack'); | ||
const { config } = require('dotenv'); | ||
const path = require('path'); | ||
const Dotenv = require('dotenv-webpack'); | ||
|
||
const env = config().parsed; | ||
const envKeys = Object.keys(env).reduce((prev, next) => { | ||
prev[`process.env.${next}`] = JSON.stringify(env[next]); | ||
return prev; | ||
}, {}); | ||
|
||
module.exports = { | ||
mode: 'development', | ||
devtool: 'eval-source-map', | ||
plugins: [ | ||
new DefinePlugin(envKeys), | ||
new Dotenv() | ||
], | ||
devServer: { | ||
contentBase: path.resolve(__dirname, 'build'), | ||
port: 9090, | ||
historyApiFallback: true, | ||
}, | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.