Created
January 17, 2020 10:18
-
-
Save dmitriyzyuzin/382b9ab2d5ed9da4dd7b41300ed4e78f to your computer and use it in GitHub Desktop.
next.js config example
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 withImages = require("next-images"); | |
const nextConfig = {...} | |
module.exports = (phase) => { | |
if (phase === PHASE_DEVELOPMENT_SERVER || phase === PHASE_PRODUCTION_BUILD) { | |
const withCSS = require("@zeit/next-css"); | |
return withCss(withImages(nextConfig))))); | |
} | |
return withImages(nextConfig); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment