Files
morten-olsen.github.io/next.config.js
Morten Olsen e30e3c8d2d init
2022-03-23 08:36:14 +01:00

22 lines
588 B
JavaScript

const withPlugins = require("next-compose-plugins");
const withImages = require("./config/plugins/withImages.js");
const withBundleAnalyzer = require("@next/bundle-analyzer")({
enabled: process.env.ANALYZE === "true",
});
const nextConfig = {
poweredByHeader: false,
images: {
disableStaticImages: true
}
};
module.exports = withPlugins([
[withImages,{
esModule: true, // using ES modules is beneficial in the case of module concatenation and tree shaking.
inlineImageLimit: 0, // disable image inlining to data:base64
}],
withBundleAnalyzer,
], nextConfig);