mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-16 04:11:34 +00:00
* feat: upgrade to Next.js 16 * chore: deps * fix * fix * fix * fix: workaround zod 4 for now * fix * fix: copy button * fix: update apps/v4/hooks/use-is-mac.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * fix * fix: remove --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
98 lines
2.0 KiB
JavaScript
98 lines
2.0 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",
|
|
},
|
|
{
|
|
protocol: "https",
|
|
hostname: "avatar.vercel.sh",
|
|
},
|
|
],
|
|
},
|
|
experimental: {
|
|
turbopackFileSystemCacheForDev: true,
|
|
},
|
|
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: "/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,
|
|
},
|
|
{
|
|
source: "/docs/:path*.mdx",
|
|
destination: "/docs/:path*.md",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/mcp",
|
|
destination: "/docs/mcp",
|
|
permanent: false,
|
|
},
|
|
{
|
|
source: "/directory",
|
|
destination: "/docs/directory",
|
|
permanent: false,
|
|
},
|
|
]
|
|
},
|
|
rewrites() {
|
|
return [
|
|
{
|
|
source: "/docs/:path*.md",
|
|
destination: "/llm/:path*",
|
|
},
|
|
]
|
|
},
|
|
}
|
|
|
|
const withMDX = createMDX({})
|
|
|
|
export default withMDX(nextConfig)
|