GetAppSpecStaticSite

data class GetAppSpecStaticSite(val bitbucket: GetAppSpecStaticSiteBitbucket? = null, val buildCommand: String? = null, val catchallDocument: String? = null, val cors: GetAppSpecStaticSiteCors? = null, val dockerfilePath: String? = null, val environmentSlug: String? = null, val envs: List<GetAppSpecStaticSiteEnv>? = null, val errorDocument: String? = null, val git: GetAppSpecStaticSiteGit? = null, val github: GetAppSpecStaticSiteGithub? = null, val gitlab: GetAppSpecStaticSiteGitlab? = null, val indexDocument: String? = null, val name: String, val outputDir: String? = null, val routes: List<GetAppSpecStaticSiteRoute>, val sourceDir: String? = null)

Constructors

Link copied to clipboard
constructor(bitbucket: GetAppSpecStaticSiteBitbucket? = null, buildCommand: String? = null, catchallDocument: String? = null, cors: GetAppSpecStaticSiteCors? = null, dockerfilePath: String? = null, environmentSlug: String? = null, envs: List<GetAppSpecStaticSiteEnv>? = null, errorDocument: String? = null, git: GetAppSpecStaticSiteGit? = null, github: GetAppSpecStaticSiteGithub? = null, gitlab: GetAppSpecStaticSiteGitlab? = null, indexDocument: String? = null, name: String, outputDir: String? = null, routes: List<GetAppSpecStaticSiteRoute>, sourceDir: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

A Bitbucket repo to use as component's source. Only one of git, github, bitbucket, gitlab, or image may be set. To read your repo, App Platform must be authorized to access your Bitbucket account. Go to this URL to link App Platform to your Bitbucket account: https://cloud.digitalocean.com/apps/bitbucket/install.

Link copied to clipboard
val buildCommand: String? = null

An optional build command to run while building this component from source.

Link copied to clipboard

The name of the document to use as the fallback for any requests to documents that are not found when serving this static site.

Link copied to clipboard

The CORS policies of the app.

Link copied to clipboard
val dockerfilePath: String? = null

The path to a Dockerfile relative to the root of the repo. If set, overrides usage of buildpacks.

Link copied to clipboard
val environmentSlug: String? = null

An environment slug describing the type of this app.

Link copied to clipboard

Describes an environment variable made available to an app competent.

Link copied to clipboard
val errorDocument: String? = null

The name of the error document to use when serving this static site.

Link copied to clipboard

A Git repo to use as the component's source. The repository must be able to be cloned without authentication. Only one of git, github or gitlab may be set.

Link copied to clipboard

A GitHub repo to use as the component's source. DigitalOcean App Platform must have access to the repository. Only one of git, github, bitbucket, gitlab, or image may be set.

Link copied to clipboard

A Gitlab repo to use as the component's source. DigitalOcean App Platform must have access to the repository. Only one of git, github, bitbucket, gitlab, or image may be set.

Link copied to clipboard
val indexDocument: String? = null

The name of the index document to use when serving this static site.

Link copied to clipboard

The name of the component.

Link copied to clipboard
val outputDir: String? = null

An optional path to where the built assets will be located, relative to the build context. If not set, App Platform will automatically scan for these directory names: _static, dist, public.

Link copied to clipboard
Link copied to clipboard
val sourceDir: String? = null

An optional path to the working directory to use for the build.