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: src/routes/solid-start/v2/reference/config/solid-start.mdx
+14-7Lines changed: 14 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -137,9 +137,13 @@ solidStart({
137
137
138
138
-**Type:**`string`
139
139
140
-
Path to a module whose default export handles values thrown by server functions before SolidStart serializes them into a response.
140
+
Path to a module whose default export handles values thrown by server functions before SolidStart serializes them into a response. Only calls arriving over the network reach it. The module is bundled only into the server, so it can import server-only code.
141
141
142
-
The handler can report the original value and return a safer replacement for the client. Return `undefined` to preserve the original value. The module is bundled only into the server, so it can import server-only code.
142
+
The export runs synchronously, and its return value is not awaited.
143
+
144
+
- Return `undefined` or `null` to preserve the original value.
145
+
- Return a `Response` unchanged to pass it through, which keeps a thrown `redirect` working. See [Return Responses](/solid-start/v2/advanced/return-responses).
146
+
- Return any other value to send it in place of the original, serialized to the client along with its own properties.
0 commit comments