Skip to content

Commit

Permalink
Revert "Merge pull request #1 from Maxim-Filimonov/env_variables"
Browse files Browse the repository at this point in the history
This reverts commit 43e1204, reversing
changes made to 936c305.
  • Loading branch information
sretundijr committed Nov 10, 2017
1 parent 43e1204 commit c1ab2af
Show file tree
Hide file tree
Showing 4 changed files with 817 additions and 28 deletions.
28 changes: 9 additions & 19 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
{
"env": {
"development": {
"presets": "next/babel"
},
"production": {
"presets": "next/babel"
},
"test": {
"presets": [
[
"env",
{
"modules": "commonjs"
}
],
"next/babel"
]
}
}
"presets": [
"next/babel"
],
"plugins": [
[
"transform-define",
"./env-config.js"
]
]
}
9 changes: 0 additions & 9 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
const webpack = require('webpack');

module.exports = {
exportPathMap() {
return {
Expand All @@ -10,11 +8,4 @@ module.exports = {
'/view-questionnaire': { page: '/view-questionnaire' },
};
},
webpack: (cfg) => {
cfg.plugins.push(new webpack.DefinePlugin({
'process.env.REACT_APP_API_BASE_URL': JSON.stringify(process.env.REACT_APP_API_BASE_URL),
}));

return cfg;
},
};
Loading

0 comments on commit c1ab2af

Please sign in to comment.