| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| adapters | ||
| testing | ||
| constants.ts | ||
| errors.ts | ||
| factory.ts | ||
| index.ts | ||
| interface.ts | ||
| types.ts |
When using OSS storage with Next.js, getBucketInfo() triggers
"ReferenceError: name is not defined" at startup. This happens because
the ali-oss SDK references a variable named `name` internally in its
createRequest function, which conflicts with the global `name` property
in bundled JavaScript environments.
Replacing getBucketInfo() with list({ 'max-keys': 1 }) achieves the same
goal (verifying the bucket is accessible) while avoiding the problematic
code path. The list() method is already used successfully elsewhere in
the OSS adapter.
Fixes #6552
Co-authored-by: octo-patch <octo-patch@github.com>
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| adapters | Loading commit data... | |
| testing | Loading commit data... | |
| constants.ts | Loading commit data... | |
| errors.ts | Loading commit data... | |
| factory.ts | Loading commit data... | |
| index.ts | Loading commit data... | |
| interface.ts | Loading commit data... | |
| types.ts | Loading commit data... |