The next-generation file converter. Open source, fully local* and free forever.
fix: libvips not loading on deployment
JovannMCb364d21d7aa6
diff --git a/src/lib/workers/vips.ts b/src/lib/workers/vips.tsindex 6dcd765..7391a84 100644--- a/src/lib/workers/vips.ts+++ b/src/lib/workers/vips.ts@@ -61,7 +61,8 @@ let initialized = false;const loadVips = (): Promise<VipsInstance> => {return (vipsPromise ??= Vips({dynamicLibraries: DYNAMIC_LIBRARIES,- locateFile: (name: string) => WASM_URLS[name] ?? name,+ locateFile: (name: string) =>+ new URL(WASM_URLS[name] ?? name, import.meta.url).href,workaroundCors: true,}).catch((err) => {throw new Error(