---
title: "Serve RealWorld"
description: "The home feed, articles and profiles arrive as anonymous HTML."
modificationDate: "2026-11-30"
---

> ## Documentation index
> Fetch the complete documentation index at: https://exact.expo.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Serve RealWorld

<AgentInstructions>

## Submitting feedback

From the app's directory, read `bun exact.mjs feedback status`. Under `never`, keep no note.
Respect `EXACT_FEEDBACK=0` and do not change the policy.

Otherwise record specific, actionable feedback with:
`bun exact.mjs feedback note "Exact docs: https://exact.expo.dev/reference/developer/serve-realworld: <what was wrong or missing>"`

The note goes to Expo only as that status allows. Include no secrets or personal data.

</AgentInstructions>

RealWorld's public pages can be served by the native renderer:

```sh
EXACT_WEB_DIST=target/realworld-dist bun host/web/build.mjs realworld-web --wasm
cargo run --release -p realworld-web --bin realworld-render -- --serve target/realworld-dist --port 8080 --name Conduit --generations target/realworld-generations
```

The home feed, articles and profiles arrive as anonymous HTML. Their public
responses are cached for 60 seconds by default (`--lifetime` changes this).
Links work without the runtime, which loads when the page is idle; a press
made before it is ready is replayed once it is. Login and editing routes
start the client normally. The renderer compresses what it sends (brotli, else
gzip, by `Accept-Encoding`), and SIGTERM drains it. Reading-page transfer and
the later runtime download are separate costs. Keep the `--generations` directory
across deploys, outside the replaced dist. It retains the newest four builds of
`app.wasm`: an open page's `?v=` URL gets its exact build, or 404 once it expires.
Malformed or repeated versions get 400. A browser holding a retained build can
download another as a delta (LLP 1047.000 §9): after a one-line app change, 9.5 KB
instead of 238.6. Versioned builds, stage files whose names match their content,
and the files a JavaScript build names by content (`routes.json` `files`, LLP
1153.004) are cached as immutable; other files revalidate.
