Files
Lahfir 3f35b0199c feat: add the docs site served at agent-browser.dev/desktop (#335)
* feat: add the docs site served at agent-browser.dev/desktop

Adds apps/docs, a Geistdocs site generated with geistdocs init and set up
as a Vercel Microfrontends child app. agent-browser.dev stays the default
app; this app owns /desktop and redirects /docs/desktop there.

For now it has only an Introduction and an Installation page. More pages
go in apps/docs/content/docs and deploy on merge to main.

* fix: add docs SEO metadata and OG images, and pin patched versions

Every page now has a title, description, canonical URL, Open Graph and
Twitter tags, and an OG image at /desktop/og, styled like agent-browser's.
Previews send noindex. The sitemap routes work, the template's extra
language and its /desktop robots route are gone.

next goes to 16.4.3 and zod to 4.6.7 for the Next.js RCE and zod memory
advisories. All dependencies are pinned to exact versions, and Node is
pinned to 24.22.2 for local builds; Vercel only selects the major.

* fix: drop unused template routes and serve llms.txt to markdown requests

Removes the template's RSS, agents.md, openapi.json, mcp.json and MCP
routes and its Markdown tracking call. agent-browser's docs have none of
them, and several were broken under /desktop.

Requests for /desktop/llms.txt, /desktop/sitemap.md and the OG images with
Accept: text/markdown were rewritten to a docs page and returned 404. The
proxy now rewrites them straight to their routes.

Marks the docs lockfile as generated so GitHub collapses it.

* docs: show the permissions guide instead of version in the install block

macOS needs Accessibility permission before agent-desktop can read any app,
so the second line now runs agent-desktop permissions --guide.
2026-10-30 01:10:41 -07:00

6 lines
270 B
TypeScript

import { notFound } from "next/navigation";
// biome-ignore lint/performance/noNamespaceImport: Next.js generates root parameter getters on this module.
import * as root from "next/root-params";
export const getRootLang = async () => (await root.lang()) ?? notFound();