nextConfig.redirects() — ui Function Reference
Architecture documentation for the nextConfig.redirects() function in next.config.mjs from the ui codebase.
Entity Profile
Dependency Diagram
graph TD ac58fd69_aa59_fb6f_cb8e_5f8c08dd4a8c["nextConfig.redirects()"] 38ef800f_87d7_08ff_91e4_ea40b24a9319["next.config.mjs"] ac58fd69_aa59_fb6f_cb8e_5f8c08dd4a8c -->|defined in| 38ef800f_87d7_08ff_91e4_ea40b24a9319 style ac58fd69_aa59_fb6f_cb8e_5f8c08dd4a8c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/next.config.mjs lines 24–72
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,
},
]
},
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does nextConfig.redirects() do?
nextConfig.redirects() is a function in the ui codebase, defined in deprecated/www/next.config.mjs.
Where is nextConfig.redirects() defined?
nextConfig.redirects() is defined in deprecated/www/next.config.mjs at line 24.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free