Skip to content

Commit

Permalink
Merge pull request #7 from FacundoGFlores/chore/env-config
Browse files Browse the repository at this point in the history
Try new config for heroku
  • Loading branch information
FacundoGFlores authored Aug 12, 2019
2 parents dbe3e89 + 39abcd1 commit 8ac34ca
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
const { parsed: localEnv } = require("dotenv").config();
const webpack = require("webpack");

require("dotenv").config();
module.exports = {
webpack(config) {
config.plugins.push(new webpack.EnvironmentPlugin(localEnv));

return config;
env: {
NEXT_SEARCH_GITHUB_API_KEY: process.env.NEXT_SEARCH_GITHUB_API_KEY
}
};

0 comments on commit 8ac34ca

Please sign in to comment.