- Starts the command in your project, the same way you would.
- Waits until the URL answers. Production builds take a while, so it waits up to 10 minutes
(
--app-timeout). - Runs the test against
localhost. - Stops the app and everything it started, even after an error or Ctrl-C.
On your machine
--app works on run, investigate and ci.
In CI, on every pull request
In CI, replica mode needs no deploy at all: the GitHub Action builds the pull request in the job, tests it there and comments the capacity change on the pull request. Pushes tomain record the baseline.
Good to know
- What it measures: your app’s own build on that machine. Serverless behaviour such as
cold starts isn’t included, and the absolute numbers depend on the machine. The change
between two runs on the same kind of machine (
mainagainst a pull request) is the signal. - Results are marked:
config.replicaistruein the result, and the report says it was measured on a local replica. - The command stays private: it’s never saved or uploaded, since it may carry secrets.
- Coming next: throwaway database branches (Neon first, then Supabase), so the replica gets realistic data without touching your real database.