Files
cosscom__coss/apps/ui/next.config.ts
Volnei Munhoz f5df3a2ae9 refactor: configs improvements (#482)
* configs improvements

* add cache to lint to faster lint checks

* Remove check-types from turbo.json

* fix: registry buind and ui propagation issues

* chore: update TypeScript paths and ESLint ignores, and clean up mobile-nav component

* fix: update imports

---------

Co-authored-by: pasqualevitiello <pasqualevitiello@gmail.com>
2025-11-04 09:54:33 +00:00

29 lines
559 B
TypeScript

import type { NextConfig } from "next"
import { createMDX } from "fumadocs-mdx/next"
const withMDX = createMDX()
const nextConfig: NextConfig = {
basePath: process.env.NEXT_PUBLIC_BASE_PATH || "/ui",
transpilePackages: ["@coss/ui"],
async redirects() {
return [
{
source: "/",
destination: "/docs",
permanent: false,
},
]
},
async rewrites() {
return [
{
source: "/docs/:path*.md",
destination: "/api/raw/docs/:path*",
},
]
},
}
export default withMDX(nextConfig)