forked from asyncapi/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.mjs
37 lines (33 loc) · 893 Bytes
/
next.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import frontmatter from 'remark-frontmatter';
import images from 'remark-images';
import gemoji from 'remark-gemoji-to-emoji';
import a11yEmoji from '@fec/remark-a11y-emoji';
import slug from 'remark-slug';
import headingId from 'remark-heading-id';
import remarkGfm from 'remark-gfm';
import withMDX from '@next/mdx';
/**
* @type {import('next').NextConfig}
*/
const nextConfig = {
pageExtensions: ['tsx', 'ts', 'md', 'mdx'],
eslint: {
ignoreDuringBuilds: true
},
output: 'export',
webpack(config, { isServer }) {
if (!isServer) {
config.resolve.fallback.fs = false;
}
return config;
}
};
const mdxConfig = withMDX({
extension: /\.mdx?$/,
providerImportSource: "@mdx-js/react",
options: {
remarkPlugins: [frontmatter, gemoji, headingId, slug, images, a11yEmoji, remarkGfm],
rehypePlugins: []
}
});
export default mdxConfig(nextConfig);