forked from SCLS-AI-Camp/MP1
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.mjs
More file actions
35 lines (32 loc) · 713 Bytes
/
Copy pathnext.config.mjs
File metadata and controls
35 lines (32 loc) · 713 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import rehypePrism from '@mapbox/rehype-prism'
import nextMDX from '@next/mdx'
import remarkGfm from 'remark-gfm'
/** @type {import('next').NextConfig} */
const nextConfig = {
pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'mdx'],
images: {
unoptimized: true,
remotePatterns: [
{
protocol: 'https',
hostname: 'favicon.im'
},
{
protocol: 'https',
hostname: 'www.google.com'
},
{
protocol: 'https',
hostname: 'images.unsplash.com',
}
],
},
}
const withMDX = nextMDX({
extension: /\.mdx?$/,
options: {
remarkPlugins: [remarkGfm],
rehypePlugins: [rehypePrism],
},
})
export default withMDX(nextConfig)