Files
zeekay e375ec18b3 revert: remove migration-tools symlink - implement in lux-cli directly
Migration logic will be implemented directly in lux migrate commands
using the ChainExporter interface, not as external binaries.
2025-11-23 03:56:51 -08:00

19 lines
446 B
TypeScript

import { docs } from "@/.source"
import { loader } from "fumadocs-core/source"
// Create a single source instance that is reused
// This prevents circular references and stack overflow issues
let _source: ReturnType<typeof loader> | null = null
export function getSource() {
if (!_source) {
_source = loader({
baseUrl: "/docs",
source: docs.toFumadocsSource(),
})
}
return _source
}
export const source = getSource()