mirror of
https://github.com/versia-pub/docs.git
synced 2026-03-13 02:49:16 +01:00
chore: ⬆️ Upgrade dependencies, add bundle analyzer
This commit is contained in:
parent
be3faaade9
commit
850efb4bd3
3 changed files with 11 additions and 7 deletions
|
|
@ -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)));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue