Skip to content

# AppRun-Site - Static Site

The AppRun-Site build command has the option to render your pages into HTML files and create a static website.

    npx apprun-site build --render

The build command first scans and compiles your pages in the `pages` directory and then downloads them into the `public` directory by leveraging the dev server's server-side rendering.

    /public             <- compiled site
      /index.html       <- copied
      /index.js         <- compiled
      /main.js          <- compiled
      /about
        /index.html     <- *** server-side rendered page ***
        index.js        <- compiled
      /contact
        /index.html     <- *** server-side rendered page ***
        index.js        <- compiled

    /pages              <- sorrce pages
      /index.html       <- index page
      /index.md         <- home page
      /main.tsx         <- start up code
      /about
        index.md        <- about page, markdown
      /contact
        contact.tsx     <- contact page, AppRun component`

With all the HTML pages created, you can deploy the static website.

In the next section, you will learn the AppRun-Site command line.