const env = process.env; export const config = { env: env.NODE_ENV ?? "development", logLevel: env.LOG_LEVEL ?? "info", port: Number(env.API_PORT ?? 8260), host: env.API_HOST ?? "127.0.0.1", redisUrl: env.REDIS_URL ?? "redis://127.0.0.1:6379", webUrl: env.WEB_URL ?? "http://127.0.0.1:8261", publicBaseUrl: env.PUBLIC_BASE_URL ?? "http://localhost:8260", canonicalHost: env.CANONICAL_HOST ?? "www.websensor.io", redirectApexToWww: (env.WS_REDIRECT_APEX ?? "1") !== "0", /** Admin endpoints (`/api/v1/admin/*`) are enabled only when this token is set; sent as `X-WebSensor-Admin`. */ adminToken: env.WS_ADMIN_TOKEN ?? "", /** Custom URL monitors per anonymous owner (spec ยง45). */ monitorsPerOwner: Number(env.WS_MONITORS_PER_OWNER ?? 5), version: "0.3.0", };