15 lines
578 B
Markdown
15 lines
578 B
Markdown
# Flutter web preview
|
|
|
|
Build and run from `app/`:
|
|
|
|
```sh
|
|
/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.
|