Repository navigation
Commit a7dedf8
feat: connect the toolbar to the dev server (#48)
* feat: connect the toolbar to the dev server
Add connectDevServer and the @solidjs/start-devtools/protocol entry, so
@solidjs/vite-plugin can send what only the dev server knows:
- errors the server runtime reports go to the Health view
- open in editor uses the plugin's endpoint, one request resolved
against the Vite root
- the solid-js version falls back to the one the dev server resolved
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix: show a server render error once, and drop the base from the protocol
An <Errored> that renders its fallback on the server sends the error
with the page, so hydration throws it again. The page's record and the
server's now merge into one.
The plugin's endpoint is mounted ahead of Vite's base handling, like
Vite's own /__open-in-editor, so the info no longer carries the base.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore: use @solidjs/vite-plugin 3.0.0-next.57
This release serves the dev server side of the devtools protocol.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(health): keep app files in a devtools checkout out of library frames
A server stack names files by absolute path. Any path under a folder
named solid-start-devtools counted as library code, so the frames of the
examples in this repository folded away and the viewer opened on a Vite
frame. Only the checkout's dist and src folders count now.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>1 parent dba6dfe commit a7dedf8
21 files changed
Lines changed: 671 additions & 75 deletions
File tree
- .changeset
- src
- dev-toolbar
- error-viewer
- health
- tests
- e2e
- fixture
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
| |||
61 | 65 | | |
62 | 66 | | |
63 | 67 | | |
64 | | - | |
| 68 | + | |
65 | 69 | | |
66 | 70 | | |
67 | 71 | | |
| |||
0 commit comments