We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97a1793 commit 0e31479Copy full SHA for 0e31479
1 file changed
packages/start/src/config/index.ts
@@ -22,7 +22,14 @@ export interface SolidStartOptions {
22
extensions?: string[];
23
middleware?: string;
24
serialization?: {
25
- // This only matters for server function responses
+ /**
26
+ * The serialization mode to use for server functions/actions.
27
+ * The "js" mode uses a custom binary format that is more efficient than JSON, but requires a custom deserializer (with `eval()`) on the client.
28
+ * A strong CSP should block `eval()` executions, which would prevent the "js" mode from working.
29
+ * The "json" mode uses JSON for serialization, which is less efficient but can be deserialized with `JSON.parse` on the client.
30
+ *
31
+ * @default "json"
32
+ */
33
mode?: "js" | "json";
34
};
35
}
0 commit comments