mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-25 06:14:59 +00:00
1.1 KiB
1.1 KiB
DBAL Frontend
frontends/dbal is now a dedicated Next.js app that ships the DBAL Daemon overview plus a standalone /api/status endpoint.
Structure
app/layout.tsxwires up the serif/sans fonts, global background, and theme-awarebodystyles.app/page.tsxsimply renders the sharedsrc/DaemonPageexport (metadata flows through the page for SEO).app/globals.cssprovides Tailwind base/utility imports plus a small reset so the page stands on its own.app/api/status/route.tsreturnsgetStatusResponse()fromsrc/status.ts, which the client-sideServerStatusPanelpolls.src/ServerStatusPanel.tsxis a client component that reports health, latency, and error feedback inside the marketing shell.
Running locally
cd frontends/dbal
npm install
npm run dev
Build and lint commands are the usual Next.js scripts (npm run build, npm run lint, npm run typecheck).
Integration with the monorepo
The main frontends/nextjs app still imports @dbal-ui/* via the tsconfig path pointing to frontends/dbal/src, so nothing breaks when the standalone app ships in isolation.