portfolio/next.config.mjs

27 lines
567 B
JavaScript
Raw Normal View History

2022-12-06 12:54:34 +00:00
import nextMDX from '@next/mdx'
import remarkGfm from 'remark-gfm'
import rehypePrism from '@mapbox/rehype-prism'
/** @type {import('next').NextConfig} */
const nextConfig = {
2023-01-17 21:24:16 +00:00
pageExtensions: ['jsx', 'js', 'tsx', 'ts', 'mdx'],
2023-01-17 21:52:47 +00:00
reactStrictMode: true,
2022-12-06 12:54:34 +00:00
swcMinify: true,
experimental: {
2023-02-23 21:45:23 +00:00
mdxRs: true
2022-12-06 12:54:34 +00:00
},
images: {
domains: ['i.scdn.co']
}
}
const withMDX = nextMDX({
extension: /\.mdx?$/,
options: {
remarkPlugins: [remarkGfm],
rehypePlugins: [rehypePrism],
2023-01-14 19:31:05 +00:00
}
2022-12-06 12:54:34 +00:00
})
export default withMDX(nextConfig)