spatial-monorepo / pmtiles/src / PMTilesHostingProfile
Type Alias: PMTilesHostingProfile
PMTilesHostingProfile = {
accountId?:string;bucketName:string;provider:"cloudflare-r2";publicUrl:string; } | {bucketName:string;cloudfrontDomain:string;provider:"aws-s3-cloudfront";publicUrl:string;region:string; } | {provider:"self-hosted";publicUrl:string; }
Defined in: packages/pmtiles/src/index.ts:24
Hosting profile describing where PMTiles archives are served from.
Discriminated union keyed on provider:
cloudflare-r2— Cloudflare R2 bucket with optional public URLaws-s3-cloudfront— AWS S3 bucket fronted by CloudFrontself-hosted— Custom origin / self-managed server
Union Members
Type Literal
{ accountId?: string; bucketName: string; provider: "cloudflare-r2"; publicUrl: string; }
accountId?
optionalaccountId?:string
Optional Cloudflare account ID for private buckets
bucketName
bucketName:
string
provider
provider:
"cloudflare-r2"
publicUrl
publicUrl:
string
Type Literal
{ bucketName: string; cloudfrontDomain: string; provider: "aws-s3-cloudfront"; publicUrl: string; region: string; }
Type Literal
{ provider: "self-hosted"; publicUrl: string; }
