Skip to content
module@warp-drive/utilities

Interface BuildURLConfig ​

ts
interface BuildURLConfig {
  host: string | null;
  namespace: string | null;
}

Defined in: index.ts:22

The global configuration used by buildBaseURL when a call does not provide its own host/namespace. Set via setBuildURLConfig.

Extended by ​

Properties ​

host ​

ts
host: string | null;

Defined in: index.ts:26

The scheme, domain and port (if any) to prefix built URLs with, e.g. 'https://api.example.com'.


namespace ​

ts
namespace: string | null;

Defined in: index.ts:30

The path segment to insert between host and the resource path, e.g. 'api/v1'.

Released under the MIT License.