Documentation / @zerotal/core / storage / UnsafePublicMountError
Class: UnsafePublicMountError
Defined in: storage/errors.ts:122
Thrown when a disk outside the public directory is served without signing.
Everything under the storage root is private except storage/public. A disk
rooted elsewhere can still be exposed — but only behind signed: true, where
each request carries a signature you issued. Serving it openly would make
private files world-readable through a URL prefix, which is the mistake this
refuses to let a config express.
Extends
Constructors
Constructor
new UnsafePublicMountError(
disk,root,publicRoot):UnsafePublicMountError
Defined in: storage/errors.ts:123
Parameters
disk
string
root
string
publicRoot
string
Returns
UnsafePublicMountError
Overrides
Properties
code
readonlycode:string
Defined in: errors/ZerotalError.ts:18
Inherited from
status
readonlystatus:number=500
Defined in: errors/ZerotalError.ts:19
Inherited from
context?
readonlyoptionalcontext?:Record<string,unknown>
Defined in: errors/ZerotalError.ts:20