chore: ⬆️ Upgrade dependencies, add bundle analyzer

This commit is contained in:
Jesse Wierzbinski 2024-07-24 14:21:49 +02:00
parent be3faaade9
commit 850efb4bd3
No known key found for this signature in database
3 changed files with 11 additions and 7 deletions

View file

@ -1,5 +1,6 @@
import nextMDX from "@next/mdx";
import bundleAnalyzer from "@next/bundle-analyzer";
import { recmaPlugins } from "./mdx/recma.mjs";
import { rehypePlugins } from "./mdx/rehype.mjs";
import { remarkPlugins } from "./mdx/remark.mjs";
@ -12,11 +13,13 @@ const withMDX = nextMDX({
recmaPlugins,
},
});
/** @type {import('next').NextConfig} */
const nextConfig = {
pageExtensions: ["js", "jsx", "ts", "tsx", "mdx"],
output: "export",
};
export default withSearch(withMDX(nextConfig));
const withBundleAnalyzer = bundleAnalyzer({
enabled: process.env.ANALYZE === "true",
});
export default withBundleAnalyzer(withSearch(withMDX(nextConfig)));