InstanceSignedUrlOptions
InstanceSignedUrlOptions =
object
Defined in: packages/storage/src/types.ts:334
Options for StorageInstance.signedUrl — the opinionated helper that
mints a short, token-bearing URL pointing at the /uploads/* proxy route.
Properties
Section titled “Properties”basePath?
Section titled “basePath?”
optionalbasePath:string
Defined in: packages/storage/src/types.ts:343
Base path of the proxy route. Defaults to "/uploads". Override this if
you mounted storageRoutes under a non-default basePath.
env:
Record<string,unknown>
Defined in: packages/storage/src/types.ts:336
Workers environment bindings (must include STORAGE_SECRET).
expiresIn
Section titled “expiresIn”expiresIn:
string
Defined in: packages/storage/src/types.ts:338
How long the URL is valid (e.g. "1h", "30m", "7d").