mirror of
https://github.com/cosscom/coss.git
synced 2026-09-14 20:06:50 +08:00
f5df3a2ae9
* 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>
29 lines
559 B
TypeScript
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)
|