forked from asyncapi/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
38 lines (35 loc) · 978 Bytes
/
next.config.js
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
38
const frontmatter = require('remark-frontmatter')
const images = require('remark-images')
const gemoji = require('remark-gemoji-to-emoji')
const a11yEmoji = require('@fec/remark-a11y-emoji')
const slug = require('remark-slug')
const headingId = require('remark-heading-id')
const withMDX = require('@next/mdx')({
extension: /\.mdx?$/,
options: {
remarkPlugins: [
frontmatter,
gemoji,
headingId,
slug,
images,
a11yEmoji,
],
rehypePlugins: [],
},
})
module.exports = withMDX({
pageExtensions: ['js', 'md'],
eslint: {
ignoreDuringBuilds: true,
},
webpack(config, { isServer }) {
// Fixes npm packages that depend on `fs` module
if (!isServer) {
config.resolve.fallback.fs = false;
}
// config.resolve.alias["react/jsx-dev-runtime"] = require.resolve('react/jsx-dev-runtime');
// config.resolve.alias["react/jsx-runtime"] = require.resolve('react/jsx-runtime');
return config
},
})