Commit 6c16391
fix(portal): guard livereload bind and type base URL as UrlPath
Guard the livereload HTTP server's bind the same way as the main server:
the livereload package attaches its error handler to the inner WebSocket
server, not the HTTP server it binds the port on, so a failed bind emitted
an unhandled "error" that crashed the process. On failure we now close the
server and report serverStartFailed instead.
Also model the portal base URL as a UrlPath instead of a raw string in
withApiCopilotForPortal and quickstart's defaultBaseUrl, matching the
sibling updateBuildConfigBaseUrl signature and the value-object convention.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MXbT3oxYm19pgHaviemkfa1 parent 285ca8b commit 6c16391
3 files changed
Lines changed: 14 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
78 | 89 | | |
79 | 90 | | |
80 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
| 214 | + | |
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
| 221 | + | |
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
| |||
0 commit comments