Prerequisites
Before building, make sure you have the following installed:- Node.js 20 — the version specified in
.nvmrc. Use nvm or any Node version manager. - pnpm — enabled via corepack (
corepack enable) - Git — required at build time; webpack runs
git rev-parse HEADto embed the commit hash in asset paths
Setup
Install dependencies
Build output
After a successful production build, thebuild/ directory contains:
webpack environment variables
The following variables can be passed to webpack at build time using--env:
| Variable | Default | Description |
|---|---|---|
SENTRY_DSN | null | Sentry DSN for error reporting. Omit to disable. |
SERVICE_WORKER_DISABLED | false | Disable service worker registration. |
DEBUG | false (production), true (development) | Enable debug output. |
VERSION | package.json version field | App version string. |
COMMIT_HASH | git rev-parse HEAD | Embedded automatically; not normally overridden. |
All variables are resolved at build time and baked into the static bundle. They cannot be changed at runtime without rebuilding.
Development server
The dev server is configured inwebpack.config.js:
- Binds to
0.0.0.0(all interfaces) - Uses HTTPS — required because
stremio-core-webuses APIs (such asSharedArrayBuffer) that need a secure context - Hot reload and live reload are disabled; restart the server to pick up changes to config
pnpm run build when you need a deployable artifact.
