Home / File/ next.config.mjs — ui Source File

next.config.mjs — ui Source File

Architecture documentation for next.config.mjs, a javascript file in the ui codebase. 1 imports, 0 dependents.

File javascript ComponentRegistry Styles 1 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  38ef800f_87d7_08ff_91e4_ea40b24a9319["next.config.mjs"]
  3b92e9a6_e256_0193_570a_559a13d0ff0d["next-contentlayer2"]
  38ef800f_87d7_08ff_91e4_ea40b24a9319 --> 3b92e9a6_e256_0193_570a_559a13d0ff0d
  style 38ef800f_87d7_08ff_91e4_ea40b24a9319 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { createContentlayerPlugin } from "next-contentlayer2"

/** @type {import('next').NextConfig} */
const nextConfig = {
  experimental: {
    outputFileTracingIncludes: {
      "/blocks/*": ["./registry/**/*"],
    },
  },
  reactStrictMode: true,
  swcMinify: true,
  images: {
    remotePatterns: [
      {
        protocol: "https",
        hostname: "avatars.githubusercontent.com",
      },
      {
        protocol: "https",
        hostname: "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,
      },
      {
        source: "/sidebar",
        destination: "/docs/components/sidebar",
        permanent: true,
      },
      {
        source: "/react-19",
        destination: "/docs/react-19",
        permanent: true,
      },
    ]
  },
}

const withContentlayer = createContentlayerPlugin({
  // Additional Contentlayer config options
})

export default withContentlayer(nextConfig)

Subdomains

Dependencies

  • next-contentlayer2

Frequently Asked Questions

What does next.config.mjs do?
next.config.mjs is a source file in the ui codebase, written in javascript. It belongs to the ComponentRegistry domain, Styles subdomain.
What functions are defined in next.config.mjs?
next.config.mjs defines 1 function(s): nextConfig.redirects.
What does next.config.mjs depend on?
next.config.mjs imports 1 module(s): next-contentlayer2.
Where is next.config.mjs in the architecture?
next.config.mjs is located at deprecated/www/next.config.mjs (domain: ComponentRegistry, subdomain: Styles, directory: deprecated/www).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free