You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/kit/rpc.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -115,9 +115,12 @@ When using `vite devtools build` to create a static DevTools build, the server c
115
115
#### How It Works
116
116
117
117
1. At build time, `dumpFunctions()` executes your RPC handlers with predefined arguments
118
-
2. Results are stored in `.vdt-rpc-dump.json` in the build output
118
+
2. Results are stored in `.rpc-dump/index.json` in the build output
119
119
3. The static client reads from this JSON file instead of making live RPC calls
120
120
121
+
Dump shard files are written to `.rpc-dump/*.json`. Function names in shard file keys replace `:` with `~` (for example `my-plugin:get-data` -> `my-plugin~get-data`).
122
+
Query record maps are embedded directly in `.rpc-dump/index.json`; no per-function index files are generated.
123
+
121
124
#### Static Functions (Recommended)
122
125
123
126
Functions with `type: 'static'` are **automatically dumped** with no arguments:
0 commit comments