2024-11-05 11:12:42 +00:00
|
|
|
// @ts-check
|
2025-01-13 08:00:21 +00:00
|
|
|
import fs from "fs";
|
|
|
|
import grabDist from "./utils/grabDist";
|
|
|
|
import createMDX from "@next/mdx";
|
2024-11-05 11:12:42 +00:00
|
|
|
|
2024-12-05 07:03:33 +00:00
|
|
|
const distDir = grabDist();
|
2024-11-05 11:12:42 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @type {import('next').NextConfig}
|
|
|
|
*/
|
|
|
|
const nextConfig = {
|
|
|
|
reactStrictMode: true,
|
|
|
|
eslint: {
|
|
|
|
ignoreDuringBuilds: true,
|
|
|
|
},
|
|
|
|
typescript: {
|
|
|
|
ignoreBuildErrors: true,
|
|
|
|
},
|
2024-12-05 07:03:33 +00:00
|
|
|
pageExtensions: ["js", "jsx", "ts", "tsx", "md", "mdx"],
|
|
|
|
distDir,
|
2024-11-05 11:12:42 +00:00
|
|
|
};
|
|
|
|
|
2024-12-05 07:03:33 +00:00
|
|
|
const withMDX = createMDX({
|
|
|
|
// Add markdown plugins here, as desired
|
|
|
|
});
|
|
|
|
|
2025-01-13 08:00:21 +00:00
|
|
|
export default withMDX(nextConfig);
|