mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-11 16:52:21 +03:00
Allow Next to handle .md
and .mdx
files.
This commit is contained in:
parent
a1da151f3e
commit
1ce4aacaab
|
@ -1,9 +1,12 @@
|
||||||
const withMDX = require("@next/mdx")();
|
const withMDX = require("@next/mdx")({
|
||||||
|
extension: /\.mdx?$/,
|
||||||
|
});
|
||||||
|
|
||||||
/** @type {import('next').NextConfig} */
|
/** @type {import('next').NextConfig} */
|
||||||
const nextConfig = withMDX({
|
const nextConfig = withMDX({
|
||||||
reactStrictMode: true,
|
reactStrictMode: true,
|
||||||
swcMinify: true,
|
swcMinify: true,
|
||||||
|
pageExtensions: ["js", "jsx", "ts", "tsx", "md", "mdx"],
|
||||||
});
|
});
|
||||||
|
|
||||||
module.exports = nextConfig;
|
module.exports = nextConfig;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user