portfolio/next.config.mjs

28 lines
662 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'
import {remarkMermaid} from '@theguild/remark-mermaid'
2022-12-06 12:54:34 +00:00
/** @type {import('next').NextConfig} */
const nextConfig = {
2023-01-17 21:24:16 +00:00
pageExtensions: ['jsx', 'js', 'tsx', 'ts', 'mdx'],
2022-12-06 12:54:34 +00:00
images: {
2024-02-29 20:59:11 +00:00
remotePatterns: [{
protocol: 'https',
hostname: 'i.scdn.co',
port: ''
}]
2024-08-22 16:05:57 +00:00
},
output: 'standalone'
2022-12-06 12:54:34 +00:00
}
const withMDX = nextMDX({
extension: /\.mdx?$/,
options: {
remarkPlugins: [remarkGfm, remarkMermaid],
2022-12-06 12:54:34 +00:00
rehypePlugins: [rehypePrism],
2023-01-14 19:31:05 +00:00
}
2022-12-06 12:54:34 +00:00
})
export default withMDX(nextConfig)