We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70a9f89 commit 0fb4a66Copy full SHA for 0fb4a66
next.config.mjs
@@ -1,12 +1,12 @@
1
import createMDX from '@next/mdx'
2
import remarkMath from 'remark-math'
3
import rehypeKatex from 'rehype-katex'
4
-import rehypeMdxImportMedia from 'rehype-mdx-import-media'
+import remarkMdxImages from 'remark-mdx-images'
5
6
/** @type {import('next').NextConfig} */
7
const nextConfig = {
8
- output: "export",
9
images: {
+ unoptimized: true,
10
formats: ["image/avif", "image/webp"],
11
remotePatterns: [
12
{
@@ -24,7 +24,7 @@ const nextConfig = {
24
const withMDX = createMDX({
25
// Add markdown plugins here, as desired
26
options: {
27
- remarkPlugins: [remarkMath, rehypeMdxImportMedia],
+ remarkPlugins: [remarkMath, remarkMdxImages],
28
rehypePlugins: [rehypeKatex],
29
},
30
})
0 commit comments