import { createMDX } from 'fumadocs-mdx/next';

const withMDX = createMDX();

/** @type {import('next').NextConfig} */
const config = {
  basePath: '/docs',
  trailingSlash: true,
  serverExternalPackages: ['@takumi-rs/image-response'],
  output: 'export',
  images: { unoptimized: true },
  reactStrictMode: true,
  turbopack: {
    root: '.',
  },
};

export default withMDX(config);
