Skip to content

Conversation

@neonwatty
Copy link
Owner

Summary

  • Fix malformed API URLs when API_BASE_URL already contains /api/v1
  • The build:local script sets API_BASE_URL=http://localhost:3000/api/v1, but the constructor was appending another /api/v1, resulting in http://localhost:3000/api/v1/api/v1

Test plan

  • Build extension with npm run build:local
  • Verify login works against local backend
  • Test GIF upload flow

When API_BASE_URL already contains /api/v1 (e.g., from build:local script),
the constructor was appending another /api/v1, resulting in malformed URLs
like http://localhost:3000/api/v1/api/v1.

Now checks if URL already ends with /api/v1 before appending.
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