import { withContentlayer } from "next-contentlayer" /** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: true, swcMinify: true, images: { domains: ["avatars.githubusercontent.com", "images.unsplash.com"], }, experimental: { appDir: true, }, redirects() { return [ { source: "/components", destination: "/docs/components/accordion", permanent: true, }, { source: "/docs/components", destination: "/docs/components/accordion", permanent: true, }, { source: "/examples", destination: "/examples/dashboard", permanent: false, }, { source: "/docs/primitives/:path*", destination: "/docs/components/:path*", permanent: true, }, { source: "/figma", destination: "/docs/figma", permanent: true, }, ] }, } export default withContentlayer(nextConfig)