This commit is contained in:
Morten Olsen
2022-03-22 21:39:54 +01:00
commit e30e3c8d2d
57 changed files with 4585 additions and 0 deletions

21
next.config.js Normal file
View File

@@ -0,0 +1,21 @@
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);