spatial-monorepo / pmtiles/src / validateHostingProfile
Function: validateHostingProfile()
validateHostingProfile(
profile):void
Defined in: packages/pmtiles/src/index.ts:56
Validates a PMTilesHostingProfile at runtime. Call this once during app initialisation to verify the profile is well-formed.
Note: username and password were removed in v2.0.0. Pre-sign URLs server-side and pass via publicUrl — see docs/pmtiles-hosting.md.
Parameters
profile
Returns
void
Example
ts
validateHostingProfile(profile);