mirror of
https://github.com/discourse/discourse.git
synced 2026-08-09 21:45:25 +08:00
- Add new `discourse/app/workers/...` directory - Adds a custom rolldown plugin which can create a dynamic entrypoint and return a digested URL for it - Update media-optimization service to use this new rolldown interface, and launch the worker via a `blob:` - Updates media-optimization to use type:module worker, and improve boot-error-handling strategy This is an improvement for a few reasons: 1. We can drop all the manual entrypoint/manifest/ruby config which was used to obtain the media-optimization bundle URL 2. We don't need to serve the worker from the (undigested/uncached) `public/` directory on the forum domain. Instead we just generate a one-liner worker entrypoint and create a blob from it 3. Since we're launching from a blob, the worker inherits the CSP of the host document, which is a nice defense-in-depth improvement |
||
|---|---|---|
| .. | ||
| application_helper.rb | ||
| common_helper.rb | ||
| email_helper.rb | ||
| embed_helper.rb | ||
| emoji_helper.rb | ||
| list_helper.rb | ||
| posts_helper.rb | ||
| qunit_helper.rb | ||
| topic_post_bookmarkable_helper.rb | ||
| topics_helper.rb | ||
| user_notifications_helper.rb | ||