Skip to content

Instantly share code, notes, and snippets.

@dmitriyzyuzin
Created January 17, 2020 10:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmitriyzyuzin/382b9ab2d5ed9da4dd7b41300ed4e78f to your computer and use it in GitHub Desktop.
Save dmitriyzyuzin/382b9ab2d5ed9da4dd7b41300ed4e78f to your computer and use it in GitHub Desktop.
next.js config example
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