This folder is the deploy root for the public MusAudio website + API.
Path:
c:\Users\TS\Downloads\Multi\Website version
index.html,styles.css,app.js- Public site (rebuilt from scratch; no distribute/eruda features)
netlify.toml+netlify/functions/*- Netlify serverless endpoints
vercel.json+api/*- Vercel serverless endpoints
functions/*- Cloudflare Pages Functions (TypeScript)
php/*- PHP versions of
/healthand/amp(lyrics proxy)
- PHP versions of
All deploy targets expose:
-
GET /health- Returns JSON like
{ ok:true, status:'ok' }
- Returns JSON like
-
GET /amp?url=<encoded>- Proxies requests to Apple Music AMP endpoints (and certain related hosts)
- For lyrics, the client must send:
Authorization: Bearer <dev token>Music-User-Token: <user token>
MusAumz.html now supports multiple proxy base URLs.
In settings, the Apple proxy base URL field can contain multiple URLs separated by:
- whitespace
- commas
- newlines
Example:
https://your-netlify-site.netlify.app
https://your-vercel-site.vercel.app
https://your-pages-site.pages.dev
Behavior:
- On
file:///nullorigin, the app probes each base URL’s/healthsequentially. - The first one that responds OK is cached in
localStorageand used for/amp. - If the cached proxy starts failing, the cache is cleared and the app re-probes.
- The
/ampproxy only allows a limited set of upstream hosts (Apple AMP + related), by design. - Tokens should not be hard-coded into the deployed website.