Commit c7882eb
fix(site): fall back to GitHub raw when Cargo.toml is out of build tree
Vercel only uploads the website/ directory, so the relative read of
../Cargo.toml fails with ENOENT during the build. Try the local file
first (monorepo / local dev), then fall back to fetching Cargo.toml
from main on raw.githubusercontent.com so Vercel still gets the
canonical version. Single source of truth stays Cargo.toml.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 4e359f5 commit c7882eb
1 file changed
Lines changed: 15 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
9 | 22 | | |
10 | 23 | | |
11 | 24 | | |
| |||
0 commit comments