Fix 404 audio in the browser JavaScript sound demo

Merged
FA
2d ago
+38-3

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Description

The inline-script sound demo on api-reference/browser-javascript hard-coded /vintage-button-sound-effect.mp3, but the docs site is mounted at /docs, so the request returned 404 and both play buttons were silent. The demo now resolves the file with rx.asset, which prepends the frontend path and also shows readers the supported way to reference an asset.

Rendering the page locally confirms the script now references /docs/vintage-button-sound-effect.mp3.

https://claude.ai/code/session_01LwJUCUDZhZY71q8Azr37BQ


Generated by Claude Code