Commit a9c52c1
committed
fix: resolve two remaining Vercel build failures
1. app/layout.tsx: strip surrounding quotes from NEXT_PUBLIC_SITE_URL
Environment variable was configured with extra double-quotes
(e.g. '"https://involutionhell.com"'), causing new URL() to throw
ERR_INVALID_URL at page-data collection time.
2. lib/source.ts: eagerly resolve fumadocs-mdx lazy files function
fumadocs-mdx@11.x returns `files` as a lazy function in
toFumadocsSource(), but fumadocs-core@15.8.x buildContentStorage
calls files.map() directly expecting an array. Mutate the source
object before passing to loader() to bridge the incompatibility.
https://claude.ai/code/session_01YGNupgHxmKvUdpX1x72xjR1 parent 9c18c20 commit a9c52c1
2 files changed
Lines changed: 14 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
22 | 32 | | |
23 | 33 | | |
24 | | - | |
| 34 | + | |
25 | 35 | | |
26 | 36 | | |
27 | 37 | | |
| |||
0 commit comments