Skip to content

Commit

Permalink
docs(self-hosted): troubleshooting guide for errors caused of minifie…
Browse files Browse the repository at this point in the history
…d assets by CDNs (#12516)

* docs(self-hosted): troubleshooting guide for errors caused of minified assets by CDNs

Closes getsentry/self-hosted#2962

* Apply suggestions from code review

Co-authored-by: Alex Krawiec <alexanderkrawiec@gmail.com>

---------

Co-authored-by: Alex Krawiec <alexanderkrawiec@gmail.com>
  • Loading branch information
aldy505 and coolguyzone authored Feb 20, 2025
1 parent de145dd commit c12b0fc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions develop-docs/self-hosted/troubleshooting/sentry.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,13 @@ worker1:
```
To see a more complete example, please see [a sample solution on our community forum](https://forum.sentry.io/t/how-to-clear-backlog-and-monitor-it/10715/14?u=byk).
## Cannot Load JavaScript or CSS Files From Web Interface
If you are running your Sentry instance behind a CDN like Cloudflare, Fastify, or the like, you may see some errors of invalid JavaScript or CSS files being loaded from the web interface. This is caused by some static asset files that are already optimized by the bundlers, but aren't being served with minified extensions (for example, `.min.js`). Therefore, the CDN that you are using will try to optimize the files a second time, which will result in corrupted files.

Some known paths where you may see this error:
* _static/dist/sentry/entrypoints/sentry.css
* _static/dist/sentry/entrypoints/app.js

To fix this, you can disable the auto optimization performed by your CDN.

0 comments on commit c12b0fc

Please sign in to comment.