Hello
I am trying to write a custom export script, but haven't been able to figure this out from the documentation or by looking at other export scripts. If the User has selected CDN option for serving Hype JS, how can the export script know about it.
I can see that this is causing a bug in the current OrganizedAssets export script as well. If I try to export a scene using OrganizedAssets with CDN selected, then the exported bundle does not load. It ends up referencing
https://cdn.jsdelivr.net/gh/tumult/hype-runtime/js/HYPE-674.thin.min.js
instead of
https://cdn.jsdelivr.net/gh/tumult/hype-runtime/HYPE-674.thin.min.js
(extra /js
in the URL)
This is because it does not check when rewriting the path for Hype JS, whether the user has selected CDN or not, and thus appends /js to that path as well.