portfolio/next.config.mjs
Ryan Freeman 25c6a427e6
All checks were successful
Build And Publish / BuildAndPublish (push) Successful in 3m6s
Fix build (for real)
2025-02-23 21:53:47 +00:00

33 lines
844 B
JavaScript

import nextMDX from '@next/mdx'
import remarkGfm from 'remark-gfm'
import rehypePrism from '@mapbox/rehype-prism'
import {remarkMermaid} from '@theguild/remark-mermaid'
/** @type {import('next').NextConfig} */
const nextConfig = {
pageExtensions: ['jsx', 'js', 'tsx', 'ts', 'mdx'],
images: {
remotePatterns: [{
protocol: 'https',
hostname: 'i.scdn.co',
port: ''
}]
},
output: 'standalone',
eslint: {
// Warning: This allows production builds to successfully complete even if
// your project has ESLint errors.
ignoreDuringBuilds: true,
},
}
const withMDX = nextMDX({
extension: /\.mdx?$/,
options: {
remarkPlugins: [remarkGfm, remarkMermaid],
rehypePlugins: [rehypePrism],
}
})
export default withMDX(nextConfig)