# Are highlight-js assets not uploaded to S3 bucket?

**URL:** <https://meta.discourse.org/t/are-highlight-js-assets-not-uploaded-to-s3-bucket/370833>\
**Category:** Support\
**Tags:** s3\
**Created:** [June 19, 2025, 9:51am UTC](https://meta.discourse.org/t/are-highlight-js-assets-not-uploaded-to-s3-bucket/370833 "2025-06-19T09:51:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kpums](https://avatars.discourse-cdn.com/v4/letter/k/9fc348/32.png) [@kpums](https://meta.discourse.org/u/kpums)\
**Post date:** [June 19, 2025, 9:51am UTC](https://meta.discourse.org/t/are-highlight-js-assets-not-uploaded-to-s3-bucket/370833/1 "2025-06-19T09:51:34Z")

</div>

Hi,

I have test/prod instances with minio s3 buckets for asset/upload file storage. It looks that practically all seems to be working fine. But for some reason in both ENVs the `/highlight-js/...` seems to be missing from minio S3 bucket. Interestingly this is the only asset (as far as I can tell) that is missing. Does it require any command than this: `bundle exec rake s3:upload_assets` to be uploaded into S3 bucket during build?

---

<div class="post-metadata">

**Author:** ![kpums](https://avatars.discourse-cdn.com/v4/letter/k/9fc348/32.png) [@kpums](https://meta.discourse.org/u/kpums)\
**Post date:** [June 20, 2025, 11:21am UTC](https://meta.discourse.org/t/are-highlight-js-assets-not-uploaded-to-s3-bucket/370833/2 "2025-06-20T11:21:59Z")

</div>

It seems that highlighter still lives okay in container. If I modify `/lib/highlight_js.rb` as mentioned in [this article](https://meta.discourse.org/t/how-to-enable-syntax-highlighting/332908/9) then it works.

Right now added step to container yml file in `run:` part, with the fix as workaround till this highlighter asset is also part of components that are uploaded to S3 bucket during build

```yml
  - replace:
      filename: /var/www/discourse/lib/highlight_js.rb
      from: '"/highlight-js/#{Discourse.current_hostname}/#{version SiteSetting.highlighted_languages}.js"'
      to: '"https://#{Discourse.current_hostname}/highlight-js/#{Discourse.current_hostname}/#{version SiteSetting.highlighted_languages}.js"'

```

So, this is a bug or missed/not-yer-redone asset that `./launcher rebuild <container_name>` does not include this into asset list that are moved to S3 bucket?
