npm run devTrack metadata is pushed from the RCS/Zetta machine — the website never connects into RCS.
- Set
NOW_PLAYING_SECRETin Netlify → Project configuration → Environment variables. - Deploy so
POST/GET/api/now-playingis live on https://urn1350.co.uk - On the RCS server, copy
scripts/rcs/Upload-NowPlaying.ps1to e.g.C:\GLUE\ - Edit
$ApiSecretin that script so it matchesNOW_PLAYING_SECRET - Run the script (or schedule it at startup). It watches
C:\GLUE\nowplaying.txtand POSTs on change.
Public clients only call GET /api/now-playing (no secret). Updates require Authorization: Bearer <secret>.
On Netlify, the latest track is stored with Netlify Blobs (the serverless filesystem is read-only). Locally, next dev falls back to data/now-playing.json.