> ## Documentation Index
> Fetch the complete documentation index at: https://docs.khanhng.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 2.3 Deployment View

> Deployment view for Kcode Robot Suite: local runtime, build output, CI, and release automation.

## 2.3.1 Infrastructure

The repository defines no hosting target. No Dockerfile, infrastructure template, or deployment workflow is committed.

```mermaid theme={"system"}
flowchart LR
    dev[Developer machine] -->|pnpm dev| local[Next.js dev server]
    dev -->|push or pull request| gh[GitHub]
    gh --> ci[CI workflow: verify]
    gh --> rp[Release Please workflow]
    rp -->|release pull request, tag, GitHub release| gh
    build[pnpm build and pnpm start] --> prod[Production Next.js server]
```

## 2.3.2 Runtime modes

| Mode | Command | Notes |
| - | - | - |
| Development | `pnpm dev` | Runs `pnpm --filter @kcode/web dev`. |
| Production build | `pnpm build` | Produces the Next.js production build. |
| Production serve | `pnpm start` | Serves the build. You provide the host. |

## 2.3.3 Configuration

| Variable | Used by | Purpose |
| - | - | - |
| `NEXT_PUBLIC_BASE_PATH` | `next.config.ts`, `middleware.ts` | Optional base path when the app is served under a sub-path. Defaults to an empty string. |
| `NODE_ENV` | Login server action | When `production`, the session cookie is set with the `secure` flag. |

## 2.3.4 Pipelines

| Workflow | Trigger | What it does |
| - | - | - |
| `CI` (`verify`) | Push to `master` and every pull request | Installs with a frozen lockfile, then runs `pnpm lint`, `pnpm typecheck`, and `pnpm test` on Node 22. |
| `Release Please` | Push to `master` | Opens or updates a release pull request, then creates the `vX.Y.Z` tag and GitHub release when it is merged. |

The CI workflow does not run `pnpm build`. Run it locally when a change affects the web app.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.