import { platformInfo } from '@/shared/api' import { getEnv, modules } from '@/shared/config' /** * The platform's own description, read through the typed API (plan ยง4.4), and the * optional services this deployment is linked to. The platform has no token-accessible * listing of a project's services (D8), so the linked list is read from the variables * the platform injected at deploy time. When the description read fails the page * renders the list it owns and a placeholder. */ export async function PlatformPage() { const info = await platformInfo() const linked = modules(getEnv()) return (

Platform

Linked services

Description

{info ? (
{JSON.stringify(info, null, 2)}
) : (

The platform description is unavailable.

)}
) }