Created
January 7, 2021 20:28
-
-
Save codeBelt/87eba7286567b2a51229247c0171e4a1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const withPlugins = require('next-compose-plugins'); | |
const path = require('path'); | |
module.exports = withPlugins([], { | |
webpack: (config) => { | |
const clientEnv = process.env.CLIENT_ENV || 'production'; | |
config.resolve.alias = { | |
...config.resolve.alias, | |
environment: path.join(__dirname, 'src', 'environments', clientEnv), | |
}; | |
return config; | |
}, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment