The HTML/CSS/JS runtime is designed for deploying pre-built frontend applications and static websites. It is suitable for projects generated with tools such as Hugo, Astro, VitePress, Jekyll, and similar static site generators.
Unlike applications built with frameworks such as Vue.js or React, App Platform does not build the application during deployment. Instead, it serves the pre-generated static assets directly from your repository.
Before deployment, build the project locally. The build process should generate a directory containing the static assets for your site, for example:
distbuildpublicThe output directory must include an index.html file together with all required assets.
Example for Hugo:
hugo
After the build completes, the generated files will be available in the public directory.
For HTML/CSS/JS applications, the following deployment options are not available:
This is because the application is treated as already compiled and does not require a build step during deployment.
If the generated static files are located outside the repository root, specify the path to the directory containing the build output.
For example, if the compiled site is located in /public, use:
public
App Platform will then serve files directly from this directory.