SPB Git forge

spb/websensor

Public
33commits 1branches 0releases
3.4 MBsize
maindefault branch
10 days agolast push
TypeScript 55.4% Python 43.2% SQL 1.2%
879 B

# @websensor/web

Next.js 16 frontend for WebSensor.io. Served on port 8261 (loopback) behind the Fastify gateway (apps/api, port 8260), which proxies every non-/api path here.

# Environment

Variable Default Purpose
API_URL http://127.0.0.1:8260 Gateway base URL used by Server Components (loopback).
NEXT_PUBLIC_API_URL (empty → same origin) Base URL used by client components in dev when the site is not served through the gateway.
NEXT_PUBLIC_SITE_URL https://www.websensor.io Canonical URL for metadata, sitemap, JSON-LD.
NEXT_TELEMETRY_DISABLED 1 Recommended in production.

# Scripts

pnpm dev (8261) · pnpm build · pnpm start · pnpm typecheck · pnpm lint

All data pages are force-dynamic; API failures degrade to empty states so the build never depends on a running gateway.