This commit is contained in:
Morten Olsen
2022-03-30 16:34:56 +02:00
committed by Morten Olsen
parent b654ba7e74
commit e6e938bd42
44 changed files with 386 additions and 263 deletions

View File

@@ -1,8 +1,7 @@
const withPlugins = require("next-compose-plugins");
const withImages = require("./config/plugins/withImages.js");
const withLatex = require('./config/plugins/withLatex');
const withImageGenerator = require('./config/plugins/withImageGenerator');
const withGenerator = require('./config/plugins/withGenerator');
const withBundleAnalyzer = require("@next/bundle-analyzer")({
enabled: process.env.ANALYZE === "true",
});
@@ -11,12 +10,14 @@ const nextConfig = {
poweredByHeader: false,
images: {
disableStaticImages: true
}
},
experimental: {
concurrentFeatures: true,
},
};
module.exports = withPlugins([
withLatex,
withImageGenerator,
withGenerator,
[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