ConusAI vendor v0.1.0-dev.20261013+85463d22
This commit is contained in:
parent
c3c6526952
commit
0da8a2a81b
@@ -5,7 +5,8 @@ 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.
|
||||
* 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()
|
||||
@@ -22,7 +23,11 @@ export async function PlatformPage() {
|
||||
))}
|
||||
</ul>
|
||||
<h2>Description</h2>
|
||||
<pre>{JSON.stringify(info, null, 2)}</pre>
|
||||
{info ? (
|
||||
<pre>{JSON.stringify(info, null, 2)}</pre>
|
||||
) : (
|
||||
<p>The platform description is unavailable.</p>
|
||||
)}
|
||||
</main>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user