@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.