mirror of
https://github.com/hanzoai/ui.git
synced 2026-11-21 00:18:41 +00:00
Squash merge of shadcn-ui/ui main branch into hanzo/ui, bringing in: - [email protected] through [email protected] releases - New apps/v4 directory structure - Registry system improvements and MCP server - Framework support (Vue, Svelte, React Native) - New templates (vite-app, monorepo-next, laravel) - Zod 4 compatibility (scoped override for zod@>4) - Test fixture corrections for alias resolution All 867 merge conflicts resolved preserving Hanzo customizations. 1020/1020 shadcn tests pass.
80 lines
1.7 KiB
JavaScript
80 lines
1.7 KiB
JavaScript
import { createContentlayerPlugin } from "next-contentlayer2"
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
experimental: {
|
|
outputFileTracingIncludes: {
|
|
"/blocks/*": ["./registry/**/*"],
|
|
},
|
|
},
|
|
reactStrictMode: true,
|
|
swcMinify: true,
|
|
images: {
|
|
remotePatterns: [
|
|
{
|
|
protocol: "https",
|
|
hostname: "avatars.githubusercontent.com",
|
|
},
|
|
{
|
|
protocol: "https",
|
|
hostname: "images.unsplash.com",
|
|
},
|
|
],
|
|
},
|
|
redirects() {
|
|
return [
|
|
{
|
|
source: "/components",
|
|
destination: "/docs/components/accordion",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/docs/components",
|
|
destination: "/docs/components/accordion",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/examples",
|
|
destination: "/examples/mail",
|
|
permanent: false,
|
|
},
|
|
{
|
|
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,
|
|
},
|
|
]
|
|
},
|
|
}
|
|
|
|
const withContentlayer = createContentlayerPlugin({
|
|
// Additional Contentlayer config options
|
|
})
|
|
|
|
export default withContentlayer(nextConfig)
|