Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thedevs-network/kutt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpoeti8 <ezzati.upt@gmail.com>2019-05-29 17:39:44 +0300
committerpoeti8 <ezzati.upt@gmail.com>2019-05-29 17:39:44 +0300
commit8b594a006c74dc8aa7a70afffd503b84f442514a (patch)
treeaf5f0534b7d4419ec766756898b2561e1ea11737 /next.config.js
parent48a8b9ec896e4121c92e918c03f6d0ac4fcbef08 (diff)
Replace config with .env
Diffstat (limited to 'next.config.js')
-rw-r--r--next.config.js10
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;
+ },
+};