mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-02-09 02:49:29 +08:00
40 lines
878 B
JavaScript
40 lines
878 B
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,
|
|
},
|
|
]
|
|
},
|
|
}
|
|
|
|
export default withContentlayer(nextConfig)
|