mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 16:02:26 +00:00
fix(storage): replace jsdelivr with esm.sh for aws-sdk
Switched the CDN provider for the AWS SDK (R2 client) from `jsdelivr` to `esm.sh` to resolve a runtime dependency error ("does not provide an export named 'blobHasher'"). This error was caused by a broken bundling of the transitive dependency `@smithy/hash-blob-browser` on `jsdelivr`.
This change updates the `AWS_SDK_SPECIFIER` constant in `js/storage/r2-s3.js`.
This commit is contained in:
1 parent
f9f8b9da4a
commit
4aa0021029
1 file changed
+1
-2
+1
-2
@@ -1,7 +1,6 @@
|
||||
// js/storage/r2-s3.js
|
||||
|
||||
const AWS_SDK_SPECIFIER =
|
||||
"https://cdn.jsdelivr.net/npm/@aws-sdk/[email protected]/+esm";
|
||||
const AWS_SDK_SPECIFIER = "https://esm.sh/@aws-sdk/[email protected]";
|
||||
|
||||
const disableNetworkImports = Boolean(
|
||||
globalThis?.__BITVID_DISABLE_NETWORK_IMPORTS__
|
||||
|
||||
Reference in new issue
Block a user