Package version:

Interface StaticWebsite

The properties that enable an account to host a static website

interface StaticWebsite {
    defaultIndexDocumentPath?: string;
    enabled: boolean;
    errorDocument404Path?: string;
    indexDocument?: string;
}

Properties

defaultIndexDocumentPath?: string

Absolute path of the default index page

enabled: boolean

Indicates whether this account is hosting a static website

errorDocument404Path?: string

The absolute path of the custom 404 page

indexDocument?: string

The default name of the index page under each directory