-
Notifications
You must be signed in to change notification settings - Fork 8
/
next.config.mjs
44 lines (41 loc) · 999 Bytes
/
next.config.mjs
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
36
37
38
39
40
41
42
43
44
import rehypePrism from '@mapbox/rehype-prism'
import nextMDX from '@next/mdx'
import remarkGfm from 'remark-gfm'
/** @type {import('next').NextConfig} */
const nextConfig = {
publicRuntimeConfig: {
githubRepo: 'offentlig-paas/nye.offentlig-paas.no',
},
pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'mdx'],
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'github.com',
},
{
protocol: 'https',
hostname: 'ui-avatars.com',
},
{
protocol: 'https',
hostname: 'ca.slack-edge.com',
}
],
},
experimental: {
outputFileTracingIncludes: {
'/': ['./src/app/artikkel/**/*.mdx'],
'/artikkel': ['./src/app/artikkel/**/*.mdx'],
}
}
}
const withMDX = nextMDX({
extension: /\.mdx?$/,
options: {
remarkPlugins: [remarkGfm],
rehypePlugins: [rehypePrism],
},
})
export const publicRuntimeConfig = nextConfig.publicRuntimeConfig
export default withMDX(nextConfig)