Skip to main content
zerotal

Documentation


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

StorageError.constructor

Properties

code

readonly code: string

Defined in: errors/ZerotalError.ts:18

Inherited from

StorageError.code


status

readonly status: number = 500

Defined in: errors/ZerotalError.ts:19

Inherited from

StorageError.status


context?

readonly optional context?: Record<string, unknown>

Defined in: errors/ZerotalError.ts:20

Inherited from

StorageError.context