Static Site

In App Platform, a static site is a type of component that only consists of a build process that produces static assets. These assets are not served by an application runtime (such as Ruby, Python, or PHP), but instead are served by a simple HTTP server. Static sites therefore have no run command.

Once published, static sites are incredibly performant for users, as static assets do not require server-side processing and can be served via edge caching over DigitalOcean's content delivery network (CDN). A static site component is frequently used alongside a service – for example, with the HTTP route of /assets – so that your app's assets can be served from the cache. Common static site generators include Jekyll, Hugo, and Gatsby, all of which have samples available in the “Languages and Frameworks” section of the docs.

Create and configure a static site in App Platform