Files
pipelines/app/tool/preview

Flutter web preview

Build and run from app/:

/Users/alan/development/flutter/bin/flutter build web
UPSTREAM=http://127.0.0.1:8095 node tool/preview/server.mjs --port 8080

The preview binds to loopback by default and authenticates static requests by checking the upstream authenticated web proxy with the browser cookie. Login, logout and artifacts are forwarded to that proxy; /connect is forwarded only for same-origin websocket upgrades. Set UPSTREAM to the authenticated proxy, never the raw control server. Tests use isolated local fixtures and port 0.