Repository navigation
Commit a9f55b3
authored
feat(http): add SSR overrides and time until the app is stable (#242)
* feat(http): add SSR overrides and time until the app is stable
Issue #32 asked for ways to change server responses on purpose, and for
the time until the page is interactive. Neither existed.
Add dev-only SSR overrides, set from a new section of the SSR & HTTP tab
and kept in the server's memory behind actions.http:
- Render error throws while the server renders a matching page, from
providePangularHttp(), so the user sees the server's real error path.
- Force Client render serves index.csr.html from ssrMiddleware instead of
rendering, when initPangularHub() gets browserDistFolder.
- Edit TransferState sets or removes an entry of the {appId}-state script
before the HTML is sent, escaped the way Angular writes it.
Each traced request lists the overrides that matched and what they did, is
marked overridden in the panel, and explain-ssr-request says so. The
overlay also reports when the app first became stable, measured from
navigation start, as App stable after.
Refs #32
* feat(demo): pass browserDistFolder so SSR overrides can force a Client render
The Force Client render override serves index.csr.html, which the hub can only find when it knows the browser build folder. Pass it in server.ts so the demo can show the override.
Refs #32
* docs(docs): document SSR overrides and time until stable
Refs #32
* fixup! feat(http): add SSR overrides and time until the app is stable1 parent 6642fb9 commit a9f55b3
22 files changed
Lines changed: 1157 additions & 38 deletions
File tree
- apps/docs/src/content
- getting-started
- inspectors
- app/src
- __tests__
- pages
- extension/ui
- assets
- packages/devtools/src
- __tests__
- rpc
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
0 commit comments