Files
zeekay 0986ae0039
Deploy Base Docs / deploy (push) Failing after 7m34s
Deploy Zen Docs / deploy (push) Failing after 2m21s
Deploy ZT Docs / deploy (push) Failing after 5m45s
Deploy Dev Docs / deploy (push) Failing after 4m6s
Deploy Insights Docs / deploy (push) Failing after 4m40s
Deploy Bot Docs / deploy (push) Failing after 9m38s
Hanzo CI/CD / test (linux-arm64) (push) Skipped
Hanzo CI/CD / test (linux-amd64) (push) Skipped
Hanzo CI/CD / test-advisory (push) Skipped
Deploy Cloud Landing Page / deploy (push) Failing after 6m18s
Hanzo CI/CD / test-amd64 (push) Canceled after 0s
Hanzo CI/CD / verify (push) Canceled after 0s
CI/CD / cicd (push) Canceled after 2h48m32s
Hanzo CI/CD / cicd (push) Canceled after 0s
Release / Release (push) Failing after 2m11s
bot-docs: it builds, and serves its icon from public
The build failed on every run: @hanzo/ui/next adds an SVG loader, @svgr/webpack, that
the app did not depend on. The app depends on it now. The icon is public/favicon.svg,
which the layout's metadata names; an icon file in app/ goes through Next's image
pipeline and failed the export.

Testing: pnpm build --filter=bot-docs exits 0 and writes out/favicon.svg, the icon link
and no whatsapp-bot.jpg; scripts/assets.test.ts holds the pictures and the icon.
Risk: low. The deploy has never succeeded.
How to revert: revert this commit.

Claude-Session: https://claude.ai/code/session_015XYKLn69gF4x75RWePpDBV
2026-11-20 22:50:13 -08:00

47 lines
1.6 KiB
TypeScript

// Brand tokens load before the app's own sheet so the theme can override
// where the two meet.
import '@hanzo/brand/styles/variables.css';
import './global.css';
import type { Viewport } from 'next';
import { baseUrl, createMetadata } from '@/lib/metadata';
import { Body } from '@/app/layout.client';
import { Provider } from './provider';
import type { ReactNode } from 'react';
import { Zen, ZenMono } from '@hanzo/font';
import { TreeContextProvider } from '@hanzo/docs-base-ui/contexts/tree';
import { source } from '@/lib/source';
import { NextProvider } from '@hanzo/docs/core/framework/next';
import { Analytics } from '@hanzo/docs-analytics';
export const metadata = createMetadata({
title: {
template: '%s | Hanzo Bot',
default: 'Hanzo Bot — Your AI Team in a Box',
},
description: 'One bot. Every role. Every channel. Full-blown computer-using AI agent that runs free on your Mac or deploys to the cloud starting at $5/mo.',
metadataBase: baseUrl,
icons: { icon: '/favicon.svg' },
});
export const viewport: Viewport = {
themeColor: [
{ media: '(prefers-color-scheme: dark)', color: '#0A0A0A' },
{ media: '(prefers-color-scheme: light)', color: '#0A0A0A' },
],
};
export default function RootLayout({ children }: { children: ReactNode }) {
return (
<html lang="en" className={`${Zen.variable} ${ZenMono.variable}`} suppressHydrationWarning>
<Body>
<NextProvider>
<TreeContextProvider tree={source.getPageTree()}>
<Provider>{children}</Provider>
</TreeContextProvider>
</NextProvider>
<Analytics product="bot-docs" />
</Body>
</html>
);
}