Skip to content

fix: use dynamic backend URL in reflection.js instead of hardcoded IP#5935

Closed
amukta14 wants to merge 2 commits intosugarlabs:masterfrom
amukta14:fix/reflection-dynamic-backend-url
Closed

fix: use dynamic backend URL in reflection.js instead of hardcoded IP#5935
amukta14 wants to merge 2 commits intosugarlabs:masterfrom
amukta14:fix/reflection-dynamic-backend-url

Conversation

@amukta14
Copy link
Contributor

Fixes #5918

Replaces the hardcoded backend URL ('http://3.105.177.138:8000') in reflection.js with dynamic resolution based on window.location, using the same approach as aidebugger.js.

The Reflection widget now works correctly in local development, production, and other deployments. Updated the reflection widget test to match the new behavior.

amukta14 and others added 2 commits February 27, 2026 19:28
The crescendo end listener pops crescendoDelta and
crescendoInitialVolume but never pops inCrescendo, causing
it to grow unboundedly and trigger spurious volume resets
on subsequent notes.

Signed-off-by: Ady0333 <adityashinde1525@gmail.com>
@github-actions
Copy link
Contributor

✅ All Jest tests passed! This PR is ready to merge.

@amukta14
Copy link
Contributor Author

Hi, I have an open PR that fixes #5918 (reflection.js hardcoded IP):

@walterbender @kartikktripathi

It switches reflection.js to use a dynamic backend URL like aidebugger.js, so the Reflection widget works in local dev and production. Would appreciate a review when you have time.

@kartikktripathi
Copy link
Contributor

Hey @amukta14, I do not see any changes in this PR, it seems like the changes you made already exist, please check and let me know.
Thanks!

@amukta14 amukta14 closed this Mar 7, 2026
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.

[Bug] reflection.js uses hardcoded IP address instead of dynamic backend URL like aidebugger.js

2 participants