52 lines
1.1 KiB
JavaScript
52 lines
1.1 KiB
JavaScript
import createMDX from '@next/mdx'
|
|
import remarkGfm from 'remark-gfm'
|
|
|
|
const withMDX = createMDX({
|
|
// Add markdown plugins here, as desired
|
|
options: {
|
|
remarkPlugins: [remarkGfm],
|
|
rehypePlugins: [],
|
|
},
|
|
})
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
reactStrictMode: true,
|
|
pageExtensions: ['js', 'jsx', 'mdx', 'ts', 'tsx'],
|
|
images: {
|
|
domains: ['avatars.githubusercontent.com'],
|
|
},
|
|
async headers() {
|
|
return [
|
|
{
|
|
source: '/.well-known/matrix/client',
|
|
headers: [
|
|
{
|
|
key: 'Access-Control-Allow-Origin',
|
|
value: '*',
|
|
},
|
|
{
|
|
key: 'Content-Type',
|
|
value: 'application/json',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
source: '/.well-known/matrix/server',
|
|
headers: [
|
|
{
|
|
key: 'Access-Control-Allow-Origin',
|
|
value: '*',
|
|
},
|
|
{
|
|
key: 'Content-Type',
|
|
value: 'application/json',
|
|
},
|
|
],
|
|
},
|
|
]
|
|
},
|
|
}
|
|
|
|
export default withMDX(nextConfig)
|