Are highlight-js assets not uploaded to S3 bucket?

It seems that highlighter still lives okay in container. If I modify /lib/highlight_js.rb as mentioned in this article 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

  - 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?

1 Like