Files
shadcn-ui/apps/www/next.config.mjs
shadcn 4ccff13f9c feat: react-hook-form (#377)
* 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
2023-05-19 22:56:49 +04:00

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)