I managed to fix it by hardcoding this in the gltf-progressive.js but itβs not a permanent fix between builds
let ee = "../include/draco/",
oe = "../include/ktx2/";
const je = ee,
et = oe;
// Get the current script's URL to serve as a base
const scriptUrl = new URL(import.meta.url); // or window.location.href if not in a module
// Correct way to create the URL with a base url.
const tt = new URL(ee + "draco_decoder.js", scriptUrl);
fetch(tt, { method: "GET", headers: { Range: "bytes=0-1" } })
.catch((o) => {
ee === je && (ee = "./include/draco/"),
oe === et && (oe = "./include/ktx2/");
})
.finally(() => {
Re();
});