Commit 9f8aa74
committed
refactor: enhance error handling and component structure in request.server.ts
- Updated defaultErrorRenderer to mask API_URL in error messages.
- Changed Component type to FC for better type safety.
- Improved parameter handling in definePrerenderPage for clarity.
- Adjusted error handling to correctly manage NEXT_HTTP_ERROR_FALLBACK;404.
Signed-off-by: Innei <[email protected]>1 parent 89ae354 commit 9f8aa74
File tree
4 files changed
+278
-234
lines changed- src/lib
4 files changed
+278
-234
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
14 | 22 | | |
15 | 23 | | |
16 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
0 commit comments