Commit aec7664
committed
fix(web/starlight): add content.config.ts with explicit glob loader
Astro 5 Content Layer requires an explicit collection config. Starlight's
built-in docsLoader() resolves the base path without a './' prefix, which
Astro's glob loader doesn't handle correctly in our pnpm monorepo —
the collection ends up empty and only 404.html gets generated.
Using astro/loaders glob directly with base './src/content/docs' restores
index.html generation for both guides and api sites.1 parent 43263eb commit aec7664
2 files changed
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
0 commit comments