Skip to content

⭐️⭐️⭐️ Open-source, self-hosted alternative to Linear and Plane. Project management and issue tracking where teams and AI agents work side by side to plan and ship products.

627 B
Raw Blame
'use client';

import dynamic from 'next/dynamic';
import { useTheme } from 'next-themes';
import PageSkeleton from '@/components/common/skeleton/PageSkeleton';

// Scalar is a heavy client-only bundle: keep it out of the shared bundle and off
// the server.
const ScalarReference = dynamic(() => import('./components/ScalarReference'), {
  ssr: false,
  loading: () => <PageSkeleton rows={8} />,
});

// Mounted at /:team/:projectKey/api, but the spec it renders is instance-wide.
export default function ApiDocsPage() {
  const { resolvedTheme } = useTheme();
  return <ScalarReference dark={resolvedTheme !== 'light'} />;
}