mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-07 05:40:20 +03:00
Allow Next to handle .md
and .mdx
files.
This commit is contained in:
parent
9a57c8784c
commit
fe969fb303
|
@ -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