import { createMDX } from "fumadocs-mdx/next"; const withMDX = createMDX(); /** @type {import('next').NextConfig} */ const config = { serverExternalPackages: ["@takumi-rs/image-response"], reactStrictMode: true, turbopack: { // docs site is essentially self-contained from the rest of the monorepo root: import.meta.dirname, }, async redirects() { return [ { source: "/docs/api", destination: "/docs/api/account/account.integrations.create", permanent: false, }, { source: "/support", destination: "https://github.com/jakejarvis/sofa/discussions", permanent: false, }, { source: "/ios", destination: "https://apps.apple.com/us/app/sofa-tv-movie-tracker/id6760432427", permanent: false, }, { source: "/testflight", destination: "https://testflight.apple.com/join/tjSddcaZ", permanent: false, }, { source: "/android", destination: "https://play.google.com/store/apps/details?id=com.jakejarvis.sofa", permanent: false, } ]; }, async rewrites() { return [ { source: "/docs/:path*.mdx", destination: "/llms.mdx/docs/:path*", }, ]; }, }; export default withMDX(config);