mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-07 14:08:47 +00:00
* feat(form): add form component * feat(www): update site styles * feat: add form examples * docs(www): add docs for forms * docs(www): hide tabs for docs demo
50 lines
1.1 KiB
JavaScript
50 lines
1.1 KiB
JavaScript
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,
|
|
},
|
|
{
|
|
source: "/docs/forms",
|
|
destination: "/docs/forms/react-hook-form",
|
|
permanent: false,
|
|
},
|
|
]
|
|
},
|
|
}
|
|
|
|
export default withContentlayer(nextConfig)
|