Prerequisites
| Tool | Required version |
|---|---|
| Node.js | 20.x (see .nvmrc) |
| pnpm | 10 or higher |
| Docker | Any recent version (Docker path only) |
| Git | Required by the Webpack build to read the commit hash |
The Webpack config calls
git rev-parse HEAD at build time to embed the commit hash in asset paths. A valid Git repository is required for all non-Docker build paths.Installation methods
- Local development
- Production build
- Docker
Use this path when working on the codebase or exploring Stremio Web locally.1. Clone and install2. Start the dev serverThis runs Accept the browser’s certificate warning for localhost.
webpack serve --mode development on https://0.0.0.0:8080.The development server has the following characteristics:- HTTPS only (self-signed certificate)
- Source maps via
eval-source-map DEBUG=trueenvironment variable set- Service worker disabled
- Live reload disabled — refresh the page manually after changes
Environment variables
You can pass environment variables to the Webpack build to configure runtime behavior:| Variable | Default | Description |
|---|---|---|
SENTRY_DSN | null | Sentry DSN string. When set, Sentry error reporting is enabled. |
SERVICE_WORKER_DISABLED | false | Set to true to skip service worker registration in production. |
DEBUG | true in dev, false in prod | Enables debug logging. |
VERSION | Value from package.json | App version string embedded at build time. |
COMMIT_HASH | Output of git rev-parse HEAD | Embedded automatically; used to namespace built assets. |
--env flag:
Next steps
Docker deployment
Detailed guide to running Stremio Web with Docker in production
Self-hosting
Serve Stremio Web behind a reverse proxy or on a custom domain
