Files
shadcn-ui/apps/www/next.config.mjs
2023-12-22 23:36:59 +04:00

56 lines
1.3 KiB
JavaScript

import { createContentlayerPlugin } from "next-contentlayer"
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
images: {
domains: ["avatars.githubusercontent.com", "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,
},
]
},
}
const withContentlayer = createContentlayerPlugin({
// Additional Contentlayer config options
})
export default withContentlayer(nextConfig)