mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-11 18:45:41 +00:00
36 lines
789 B
JavaScript
36 lines
789 B
JavaScript
import nextMDX from '@next/mdx'
|
|
import remarkGfm from 'remark-gfm'
|
|
import rehypePrism from '@mapbox/rehype-prism'
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
pageExtensions: ['jsx', 'js', 'mdx'],
|
|
reactStrictMode: true,
|
|
swcMinify: true,
|
|
experimental: {
|
|
newNextLinkBehavior: true,
|
|
scrollRestoration: true,
|
|
},
|
|
images: {
|
|
domains: ['i.scdn.co']
|
|
},
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
source: '/api/:path',
|
|
destination: 'https://ryanfreeman.dev/:path/',
|
|
}
|
|
]
|
|
}
|
|
}
|
|
|
|
const withMDX = nextMDX({
|
|
extension: /\.mdx?$/,
|
|
options: {
|
|
remarkPlugins: [remarkGfm],
|
|
rehypePlugins: [rehypePrism],
|
|
},
|
|
})
|
|
|
|
export default withMDX(nextConfig)
|