2024-07-24 14:21:49 +02:00
|
|
|
import bundleAnalyzer from "@next/bundle-analyzer";
|
2025-08-15 04:53:12 +02:00
|
|
|
import nextMDX from "@next/mdx";
|
2024-07-22 11:49:47 +02:00
|
|
|
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"],
|
2024-07-22 14:24:03 +02:00
|
|
|
output: "export",
|
2025-06-07 23:21:50 +02:00
|
|
|
images: {
|
|
|
|
|
domains: [
|
|
|
|
|
"api.microlink.io", // Microlink Image Preview
|
|
|
|
|
],
|
|
|
|
|
},
|
2024-07-22 11:49:47 +02:00
|
|
|
};
|
|
|
|
|
|
2024-07-24 14:21:49 +02:00
|
|
|
const withBundleAnalyzer = bundleAnalyzer({
|
|
|
|
|
enabled: process.env.ANALYZE === "true",
|
|
|
|
|
});
|
|
|
|
|
export default withBundleAnalyzer(withSearch(withMDX(nextConfig)));
|