Static Sites

Deploy plain HTML, static framework output, and SPA bundles on Agentuity

Use a static site when the app has no server-side secrets or service calls at request time. Agentuity can package plain index.html projects and static output from frameworks such as Vite, Docusaurus, VitePress, Eleventy, Gatsby, and similar build tools.

Plain HTML

A bare static site can start with only an index.html file.

htmlindex.html
<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>Status</title>
  </head>
  <body>
    <main>
      <h1>Status</h1>
      <p>The site is deployed on Agentuity.</p>
    </main>
  </body>
</html>

Then link and package the project:

agentuity project import --validate-only
agentuity project import
agentuity build

The static build path serves files and falls back to index.html for SPA routes.

Static Framework Output

For static generators and SPAs, keep the framework's normal build command:

jsonpackage.json
{
  "scripts": {
    "build": "vite build",
    "deploy": "agentuity deploy"
  }
}

If the project has no start command, Agentuity injects a small static file server into the packaged output. Inspect .agentuity/launch.json after agentuity build when you want to verify the generated command.

When to add a server boundary

NeedUse
call Agentuity services from the UIWeb Apps with a server route
accept webhooks or JSON requestsBackend APIs
run work after a user actionBackground Work
only serve HTML, CSS, JS, images, and fontsstatic site deploy