Allow Next to handle .md and .mdx files.

This commit is contained in:
Marcus Blättermann 2022-11-10 00:22:41 +01:00
parent a1da151f3e
commit 1ce4aacaab
No known key found for this signature in database
GPG Key ID: A1E1F04008AC450D

View File

@ -1,9 +1,12 @@
const withMDX = require("@next/mdx")();
const withMDX = require("@next/mdx")({
extension: /\.mdx?$/,
});
/** @type {import('next').NextConfig} */
const nextConfig = withMDX({
reactStrictMode: true,
swcMinify: true,
pageExtensions: ["js", "jsx", "ts", "tsx", "md", "mdx"],
});
module.exports = nextConfig;