import { getHydraMetadataApi, getKetoMetadataApi, getKratosMetadataApi } from '@/ory/sdk/server'; import { MetadataApiReady, StatusCard } from '@/components/status-card'; export default async function RootPage() { const kratosMetadataApi = await getKratosMetadataApi(); const kratosVersion = await kratosMetadataApi.getVersion() .then(res => res.data.version) .catch(() => undefined); const kratosStatus = await fetch(process.env.ORY_KRATOS_ADMIN_URL + '/health/ready') .then((response) => response.json() as MetadataApiReady) .catch(() => { return { errors: ['No instance running'] } as MetadataApiReady; }); const hydraMetadataApi = await getHydraMetadataApi(); const hydraVersion = await hydraMetadataApi.getVersion() .then(res => res.data.version) .catch(() => undefined); const hydraStatus = await fetch(process.env.ORY_HYDRA_ADMIN_URL + '/health/ready') .then((response) => response.json() as MetadataApiReady) .catch(() => { return { errors: ['No instance running'] } as MetadataApiReady; }); const ketoMetadataApi = await getKetoMetadataApi(); const ketoVersion = await ketoMetadataApi.getVersion() .then(res => res.data.version) .catch(() => undefined); const ketoStatus = await fetch(process.env.ORY_KETO_ADMIN_URL + '/health/ready') .then((response) => response.json() as MetadataApiReady) .catch(() => { return { errors: ['No instance running'] } as MetadataApiReady; }); return (

Software Stack

See the list of all applications in your stack

); }