mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-25 21:56:08 +00:00
78 lines
1.6 KiB
JavaScript
78 lines
1.6 KiB
JavaScript
import { createMDX } from "fumadocs-mdx/next"
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
devIndicators: false,
|
|
typescript: {
|
|
ignoreBuildErrors: true,
|
|
},
|
|
outputFileTracingIncludes: {
|
|
"/*": ["./registry/**/*"],
|
|
},
|
|
images: {
|
|
remotePatterns: [
|
|
{
|
|
protocol: "https",
|
|
hostname: "avatars.githubusercontent.com",
|
|
},
|
|
{
|
|
protocol: "https",
|
|
hostname: "images.unsplash.com",
|
|
},
|
|
],
|
|
},
|
|
redirects() {
|
|
return [
|
|
{
|
|
source: "/components",
|
|
destination: "/docs/components",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/docs/primitives/:path*",
|
|
destination: "/docs/components/:path*",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/figma",
|
|
destination: "/docs/figma",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/docs/forms",
|
|
destination: "/docs/components/form",
|
|
permanent: false,
|
|
},
|
|
{
|
|
source: "/docs/forms/react-hook-form",
|
|
destination: "/docs/components/form",
|
|
permanent: false,
|
|
},
|
|
{
|
|
source: "/sidebar",
|
|
destination: "/docs/components/sidebar",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/react-19",
|
|
destination: "/docs/react-19",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/charts",
|
|
destination: "/charts/area",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/view/styles/:style/:name",
|
|
destination: "/view/:name",
|
|
permanent: true,
|
|
},
|
|
]
|
|
},
|
|
}
|
|
|
|
const withMDX = createMDX({})
|
|
|
|
export default withMDX(nextConfig)
|