mirror of
https://github.com/versia-pub/docs.git
synced 2025-12-06 14:28:20 +01:00
26 lines
702 B
JavaScript
26 lines
702 B
JavaScript
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";
|
|
import withSearch from "./mdx/search.mjs";
|
|
|
|
const withMDX = nextMDX({
|
|
options: {
|
|
remarkPlugins,
|
|
rehypePlugins,
|
|
recmaPlugins,
|
|
},
|
|
});
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
pageExtensions: ["js", "jsx", "ts", "tsx", "mdx"],
|
|
output: "export",
|
|
};
|
|
|
|
const withBundleAnalyzer = bundleAnalyzer({
|
|
enabled: process.env.ANALYZE === "true",
|
|
});
|
|
export default withBundleAnalyzer(withSearch(withMDX(nextConfig)));
|