HTML/CSS/JS
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.
Preparing Your Project Copy link
Before deployment, build the project locally. The build process should generate a directory containing the static assets for your site, for example:
distbuildpublic
The output directory must include an index.html file together with all required assets.
Example for Hugo:
hugoAfter the build completes, the generated files will be available in the public directory.
Deployment Behaviour Copy link
For HTML/CSS/JS applications, the following deployment options are not available:
- Build command
- Build directory
- Dependency settings
This is because the application is treated as already compiled and does not require a build step during deployment.
Project Directory Copy link
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:
publicApp Platform will then serve files directly from this directory.