Commit 48ecdc2
authored
fix(www): resolve build errors blocking deploy (#933)
- rehype.mjs: guard parentNode.properties before set — mdxJsxFlowElement
nodes (inline code in JSX <li>/<span>) have no properties object,
causing "Cannot set properties of undefined (setting 'language')"
- blog/[slug]/page.tsx: pass Callout to compileMDX components map —
blog posts using <Callout> crashed with "Expected component Callout
to be defined"1 parent 6becea3 commit 48ecdc2
2 files changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| 86 | + | |
85 | 87 | | |
86 | 88 | | |
87 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
0 commit comments