Skip to content

0.1.2 — Spotify login fix

Pre-release
Pre-release

Choose a tag to compare

@Meet2304 Meet2304 released this 25 Jul 21:23
· 38 commits to main since this release

Fixes Spotify login, which did not work in any released build.

What was wrong

The Spotify client id reaches the app through MAIN_VITE_SPOTIFY_CLIENT_ID, which lives in a gitignored .env.local. The release workflow never passed it, so CI builds had no client id.

Vite inlines that value at build time, so it folded to an empty string, the if (!SPOTIFY_CLIENT_ID) throw guard became statically true, and the entire login body was dead-code-eliminated. In v0.1.1 and earlier, loginToSpotify() was nothing but its error — clicking Connect Spotify could only ever produce "Missing MAIN_VITE_SPOTIFY_CLIENT_ID".

Changes

  • The release workflow now supplies the client id from a repository secret.
  • The workflow verifies it is present before building, so a release that cannot log in fails loudly instead of publishing.

Includes everything from 0.1.1 (the launch fix and the bottom-right default position).

Upgrading

0.1.1 shipped with a working auto-updater, so it should offer this automatically. Otherwise download the installer below.