evOo-local/apps/www/www-port.mjs
cynarAI 6c7eed7580 Initial clean evOo-local from f00577b
Fresh history cut from cynarAI/evoo antigravity-handoff/project-timeline
(Voice First + project timeline). Brand docs/titles as evOo; keep @rakazo/*
packages as tech debt. Excludes node_modules, caches, secrets, voice blobs.
2026-09-20 17:15:16 +02:00

10 lines
327 B
JavaScript

/** Shared marketing-site port for Astro + Playwright. */
export function resolveWwwPort(env = process.env) {
const raw = env.WWW_PORT?.trim();
if (!raw) return 4321;
if (!/^\d+$/.test(raw)) return 4321;
const port = Number(raw);
if (!Number.isInteger(port) || port < 1 || port > 65535) return 4321;
return port;
}