App Platform is a Platform-as-a-Service (PaaS) offering that allows developers to publish code directly to DigitalOcean servers without worrying about the underlying infrastructure.
When you give App Platform access to your code, it defaults to using a Dockerfile if one is present in the root of the directory or specified in the app spec. Otherwise, App Platform checks your code to determine what language or framework it uses. If it supports the language or framework, it chooses an appropriate resource type and uses the proper buildpack to build the app and deploy a container.
App Platform looks for any of the following to detect a Hugo application:
If App Platform detects one of these files, it guides you the remaining configuration and then builds the app with the appropriate buildpack.
App Platform uses version
v1.6.0 of the Hugo Cloud Native Buildpack. The buildpack supports all Hugo runtime versions. If no version is specified, App Platform defaults to using version
The buildpack supports the following Go runtime versions:
You can choose the default Hugo version by setting
HUGO_VERSION environment variable to any valid release from Hugo’s upstream repository, like
To use the extended version of Hugo with Sass/SCSS support, set the
HUGO_EXTENDED environment variable to