getsentry / spotlight

Your Universal Debug Toolbar
https://spotlightjs.com
Other
377 stars 11 forks source link

Make the entrypoint JS usable by other pages #552

Closed BYK closed 2 weeks ago

BYK commented 2 weeks ago

Currently we have the CDN-hosted IIFE entrypoint for FE-only workflows. But if one wanted to inject the Spotlight UI to a server-side framework such as Django or Rails, there's no easy way to just include the JS file as the filename is hash-versioned. We should make the name stable as there's no use in hashing the filename when shipping an already-versioned package.

Moreover, this entrypoint assumes fullscreen Spotlight, which we should find a good solution for the scenario described above.