diff --git a/next.config.js b/next.config.js index 2d8a736..e5823e4 100644 --- a/next.config.js +++ b/next.config.js @@ -1,11 +1,10 @@ +require('dotenv').config() const withCSS = require('@zeit/next-css'); const withSass = require('@zeit/next-sass') -const { parsed: localEnv } = require('dotenv').config() const webpack = require('webpack') module.exports = withSass({ webpack(config) { - config.plugins.push(new webpack.EnvironmentPlugin(localEnv)) config.plugins.push( new webpack.ProvidePlugin({ '$': 'jquery', @@ -13,5 +12,8 @@ module.exports = withSass({ }) ) return config + }, + env: { + 'PROD_DOMAIN': process.env.PROD_DOMAIN } }) \ No newline at end of file