[build]
target = "index.html"
dist = "dist"
# Pinned so a bundle built on a laptop and a bundle built in CI are the same
# bundle. Without this block trunk picks its own wasm-bindgen: MEASURED
# 2026-09-17 on loki, a `trunk build --release` with no pin downloaded 0.2.127
# by itself, so two boxes could ship two different bundles from one commit and
# nothing would say so.
#
# `wasm_bindgen` MUST equal the `wasm-bindgen` crate version in Cargo.lock
# exactly or trunk refuses the build — this repo's lock is 0.2.128 (moved 2026-09-28: the Build Thing web-app step links wasm-bindgen 0.2.128 and refuses any other). That is the
# same number as gunnar-ui's pin, and that is a coincidence of the step: the pin
# follows this repo's own lock, never the sibling's. Bump them together when the
# lock moves.
[tools]
wasm_bindgen = "0.2.129"
wasm_opt = "version_123"
[serve]
# Dev server. gRPC-web calls go same-origin and are proxied through to a
# locally running holger (see README §Dev loop) — no CORS configuration on
# the holger side needed during development.
addresses = ["127.0.0.1"]
port = 8090
[[proxy]]
# holger's gRPC-web door (the tonic-web layer on the gRPC endpoint). Mounted
# under /grpc because Trunk matches whole path segments — a bare
# "/holger.v1." prefix can never match the real first segment
# "holger.v1.AdminService". The /grpc prefix is stripped on forward.
rewrite = "/grpc"
backend = "http://127.0.0.1:50051"