import { createMDX } from 'fumadocs-mdx/next'; import path from "node:path"; import type { NextConfig } from "next"; const nextConfig: NextConfig = { reactStrictMode: true, turbopack: { root: path.resolve(__dirname), }, images: { remotePatterns: [ { protocol: "https", hostname: "avatars.githubusercontent.com", }, { // Handle-based avatars: https://github.com/.png protocol: "https", hostname: "github.com", }, { // Dawn Song has no GitHub account — avatar served from her homepage. protocol: "https", hostname: "dawnsong.io", }, ], }, }; const withMDX = createMDX(); export default withMDX(nextConfig);