diff options
author | poeti8 <ezzati.upt@gmail.com> | 2019-05-29 17:39:44 +0300 |
---|---|---|
committer | poeti8 <ezzati.upt@gmail.com> | 2019-05-29 17:39:44 +0300 |
commit | 8b594a006c74dc8aa7a70afffd503b84f442514a (patch) | |
tree | af5f0534b7d4419ec766756898b2561e1ea11737 /next.config.js | |
parent | 48a8b9ec896e4121c92e918c03f6d0ac4fcbef08 (diff) |
Replace config with .env
Diffstat (limited to 'next.config.js')
-rw-r--r-- | next.config.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/next.config.js b/next.config.js new file mode 100644 index 0000000..999820f --- /dev/null +++ b/next.config.js @@ -0,0 +1,10 @@ +const { parsed: localEnv } = require('dotenv').config(); +const webpack = require('webpack'); // eslint-disable-line + +module.exports = { + webpack(config) { + config.plugins.push(new webpack.EnvironmentPlugin(localEnv)); + + return config; + }, +}; |