Skip to content
Snippets Groups Projects
Select Git revision
  • 5cccd19dec64318302bfb5d6801c0fc8f07f1c17
  • master default protected
  • ci
  • co
  • dev
  • legacy-v2
  • legacy
7 results

next.config.js

Blame
  • next.config.js 744 B
    const withPlugins = require("next-compose-plugins");
    
    const withBundleAnalyzer = require("@next/bundle-analyzer");
    
    const withMDX = require("@next/mdx")({
    	extension: /\.mdx?$/,
    });
    
    const optimizedImages = require("next-optimized-images");
    
    // const CAK = process.env.NEXT_PUBLIC_CLOUDINARY_API_KEY;
    // const CAS = process.env.NEXT_PUBLIC_CLOUDINARY_API_SECRET;
    
    module.exports = withPlugins(
    	[
    		[withBundleAnalyzer({ enabled: process.env.ANALYZE === "true" })],
    		{
    			reactStrictMode: true,
    		},
    		[withMDX({ pageExtensions: ["js", "jsx", "ts", "tsx", "md", "mdx"] })],
    		{
    			reactStrictMode: true,
    		},
    		[
    			optimizedImages,
    			{
    				optimizeImagesInDev: false,
    			},
    		],
    	],
    	{
    		reactStrictMode: true,
    		trailingSlash: true,
    	},
    );