2024-11-05 11:12:42 +00:00
|
|
|
// @ts-check
|
|
|
|
const fs = require("fs");
|
|
|
|
const grabDist = require("./utils/grabDist");
|
2024-12-05 07:03:33 +00:00
|
|
|
const createMDX = require("@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
|
|
|
|
});
|
|
|
|
|
|
|
|
module.exports = withMDX(nextConfig);
|