2026-05-11 01:08:31 -07:00
|
|
|
import { createMDX } from "fumadocs-mdx/next";
|
|
|
|
|
|
|
|
|
|
const withMDX = createMDX();
|
|
|
|
|
|
|
|
|
|
/** @type {import('next').NextConfig} */
|
2026-05-11 16:40:34 -07:00
|
|
|
const config = {
|
2026-05-15 02:30:20 +02:00
|
|
|
basePath: "/ktx",
|
2026-05-11 16:40:34 -07:00
|
|
|
async rewrites() {
|
|
|
|
|
return [
|
|
|
|
|
{
|
|
|
|
|
source: "/docs/:path*.md",
|
|
|
|
|
destination: "/llms.mdx/docs/:path*",
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
},
|
2026-05-15 02:30:20 +02:00
|
|
|
async redirects() {
|
|
|
|
|
return [
|
2026-05-16 12:06:34 +02:00
|
|
|
{
|
|
|
|
|
source: "/docs",
|
|
|
|
|
destination: "/docs/getting-started/introduction",
|
|
|
|
|
permanent: false,
|
|
|
|
|
basePath: false,
|
|
|
|
|
},
|
2026-05-15 02:30:20 +02:00
|
|
|
{
|
|
|
|
|
source: "/:path*",
|
|
|
|
|
has: [{ type: "host", value: "docs.ktx.sh" }],
|
|
|
|
|
destination: "https://docs.kaelio.com/ktx/:path*",
|
|
|
|
|
permanent: true,
|
|
|
|
|
basePath: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
source: "/:path*",
|
|
|
|
|
has: [{ type: "host", value: "ktx.sh" }],
|
|
|
|
|
destination: "https://docs.kaelio.com/ktx/:path*",
|
|
|
|
|
permanent: true,
|
|
|
|
|
basePath: false,
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
},
|
2026-05-11 16:40:34 -07:00
|
|
|
};
|
2026-05-11 01:08:31 -07:00
|
|
|
|
|
|
|
|
export default withMDX(config);
|