next-app-with-squiggle/next.config.mjs

18 lines
417 B
JavaScript
Raw Normal View History

2022-08-01 07:43:16 +00:00
import nextMdx from '@next/mdx'
import remarkMath from 'remark-math'
import rehypeMathjax from 'rehype-mathjax'
const withMDX = nextMdx({
extension: /\.mdx?$/,
options: {
providerImportSource: '@mdx-js/react',
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeMathjax],
},
})
export default withMDX({
// Support MDX files as pages:
pageExtensions: ['md', 'mdx', 'tsx', 'ts', 'jsx', 'js'],
})