Staging instance, all changes can be removed at any time

Skip to content

webapp/assets: Fix pdf rendering in production

Antoine Lambert requested to merge anlambert/swh-web:fix-pdf-rendering into master

Since pdfjs using es6 modules, the loading of the pdfjs worker is failing in production as the web server does not include the MIME type for *.mjs files.

So use .js extension instead of .mjs to fix the issue.

Merge request reports

Loading