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

# Build for Production

> Deploy your app to production with optimized builds and production server configuration.

When you're ready to deploy your App to production, Skybridge provides two commands: `skybridge build` to compile your app, and `skybridge start` to run it in production mode.

## Build for Production

Before deploying, you need to build your application. Run the build command from your project root:

<CodeGroup>
  ```bash npm theme={null}
  npm run build
  ```

  ```bash pnpm theme={null}
  pnpm build
  ```

  ```bash yarn theme={null}
  yarn build
  ```

  ```bash bun theme={null}
  bun build
  ```

  ```bash deno theme={null}
  deno task build
  ```
</CodeGroup>

This runs the `skybridge build` command, which compiles your views and server code for production.

## Start Production Server

Once your app is built, start the production server:

<CodeGroup>
  ```bash npm theme={null}
  npm start
  ```

  ```bash pnpm theme={null}
  pnpm start
  ```

  ```bash yarn theme={null}
  yarn start
  ```

  ```bash bun theme={null}
  bun start
  ```

  ```bash deno theme={null}
  deno task start
  ```
</CodeGroup>

This runs the `skybridge start` command, which starts your production server.

### How it works

The production server runs your compiled application from the `dist/` directory with `NODE_ENV=production`. Unlike the development server, it:

* **Serves pre-built assets** - Views and styles are served as static files from `/assets` (compiled during `skybridge build`)
* **MCP endpoint** - Exposes your MCP server at `/mcp` for MCP Clients to connect to
* **No dev tools** - DevTools and Vite dev server are excluded in production for better performance
* **Optimized rendering** - Uses production templates that load pre-bundled JavaScript and CSS files

The server listens on port 3000 by default.

When deployed remotely, the MCP Client (ChatGPT, Claude, etc.) connects to your MCP endpoint (e.g., `https://your-domain.com/mcp`) to access your tools and views.

To deploy your app to Alpic's infrastructure, see [Deploy](/quickstart/deploy).

## What's Next?

<CardGroup cols={2}>
  <Card title="Core Concepts" icon="lightbulb" href="/concepts">
    Learn how Skybridge extends the raw APIs with React hooks
  </Card>

  <Card title="API Reference" icon="book" href="/api-reference">
    Browse the complete API documentation
  </Card>
</CardGroup>
