Hello. I had an issue, running the Statsviz in production: browser could not parse js with content-type text/plain. This pr solves the issue.
Please consider to use provided code. If not as is but at least as an idea of providing additional headers from embedded fs. Used a table with too much data as a general solution. I wasn't sure if it was a good idea to include all the extensions, but nevertheless, I decided to generalize :)
Hello. I had an issue, running the Statsviz in production: browser could not parse js with content-type text/plain. This pr solves the issue.
Please consider to use provided code. If not as is but at least as an idea of providing additional headers from embedded fs. Used a table with too much data as a general solution. I wasn't sure if it was a good idea to include all the extensions, but nevertheless, I decided to generalize :)
Best wishes.