This patch uses .js files and a modern vercel.json so Vercel picks the Node.js 20 runtime without the legacy "now-php" error.
- Push this folder to GitHub, then import to Vercel or deploy via CLI.
- Set env vars in Vercel:
- SPOTIFY_CLIENT_ID
- SPOTIFY_CLIENT_SECRET
- APP_URL = https://YOUR-APP.vercel.app
- Add Vercel KV integration to the project (Storage → Add Integration → Vercel KV).
- In Spotify Dashboard add Redirect URI:
- Visit
/api/connectand approve. Copy your public URL.