- scripts/setup.mjs: generates .env.local from .env.example with a
randomly generated AUTH_SECRET; skips if .env.local already exists
- package.json: adds 'setup' script as the first command new users run
- .gitignore: un-ignores scripts/setup.mjs while keeping rest of /scripts/ private
- docker-compose.yml: inject AUTH_SECRET (fail-fast), WWV_DEMO_ADMIN_SECRET,
and WWV_BRIDGE_TOKEN from host environment so JWT sessions survive restarts
- docker-entrypoint.sh: always run prisma migrate deploy (idempotent) instead
of skipping when the DB file already exists; removes dead DB_PATH variable
- .env: document AUTH_SECRET as required for Docker deployments
- .env.example: add AUTH_SECRET field with generation instructions
- Add prisma package to serverExternalPackages in next.config.ts
- Replace manual node_modules cherry-picking with full production install
- Copy pre-built node_modules from deps stage and prune dev dependencies
- Ensures all Prisma CLI runtime dependencies are always available
P0: Enable requestRenderMode for idle GPU savings (~50-90%)
P0: Switch camera sync from postRender to camera.changed w/ percentageChanged
P1: Stabilize sceneSettings with useMemo to prevent React re-renders
P1: Scratch HPR/Matrix4 in ModelManager and useModelRendering
P1: Add translucencyByDistance to labels for GPU-side fading
P2: Scratch Cartesian2 in searchPinAnimation
- Add color cache (getCachedColor) to eliminate per-entity Color.fromCssColorString allocations
- Add scratch Cartesian3 position to avoid heap alloc per entity in renderSingleEntity
- Add stable array cache (getStableAnimatables) to eliminate Array.from per render cycle
- Add renderEntity memoization (renderOptionsCache) for static entity options
- Refactor animation loop into dynamic/static batching for branchless iteration
- Extract modules: renderCaches.ts, animationHelpers.ts, primitiveOps.ts, renderOptionsCache.ts
- All files under 150 lines per project guidelines
- Added http: https: to img-src for MJPEG camera streams and preview images
- Added http: https: to connect-src for HLS stream fetches
- Added media-src directive for video element sources
- Added frame-src directive for YouTube, Twitch, Vimeo, and other embed providers
- Fixes CSP violations that blocked camera plugin after npm plugin migration