noogle/website/next.config.js
2024-01-07 17:20:35 +01:00

41 lines
925 B
JavaScript

/** @type {import('next').NextConfig} */
// rehypePlugins: [
// [
// rehypeHighlight,
// {
// detect: true,
// languages: { nix, haskell, bash, default: nix },
// },
// ],
// [rehypeSlug, {}],
// [rehypeAutolinkHeadings, { behavior: "wrap" }],
// ],
// remarkPlugins: [remarkHeadingId],
// format: "md",
// const remarkHeadingId = require("remark-heading-id");
// const remarkFrontmatter = import("remark-frontmatter");
// const withMDX = require("@next/mdx")({
// options: {
// remarkPlugins: [remarkHeadingId, remarkFrontmatter],
// rehypePlugins: [],
// },
// extension: /\.mdx?$/,
// });
const nextConfig = (phase, { defaultConfig }) => {
const config = {
compress: true,
optimizeFonts: true,
output: "export",
reactStrictMode: true,
swcMinify: true,
images: {
loader: "custom",
},
};
return config;
};
module.exports = nextConfig;