Skip to content

fix(spotify): honor base URL during connect - #988

Open
wjs20220914 wants to merge 1 commit into
profullstack:masterfrom
wjs20220914:fix/spotify-connect-base-url
Open

fix(spotify): honor base URL during connect#988
wjs20220914 wants to merge 1 commit into
profullstack:masterfrom
wjs20220914:fix/spotify-connect-base-url

Conversation

@wjs20220914

Copy link
Copy Markdown

Summary

  • pass the Spotify adapter config through connect()
  • honor baseUrl for the /me profile check, matching playlist create/update requests
  • add a regression test for custom API proxies and test doubles

Without this, post() used a configured Spotify API base URL while connect() silently called production at https://api.spotify.com/v1/me.

Validation

  • pnpm vitest run packages/social/spotify/src/index.test.ts --reporter=verbose (10 passed)
  • pnpm --filter @profullstack/sh1pt-social-spotify typecheck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant