Commit ce4cdbf
committed
Fix sitemap: include the /packages page, exclude the exported 404 page
Verified against the first production sitemap (268 URLs):
- /packages/ was missing. The top-level 'packages' exclusion was meant
for the package-repository metadata the deploy workflow adds, but the
Next.js /packages download page also exports to out/packages/ - and
the workflow only ever adds release-info.json there (not a page), and
only after the sitemap step has already run. Stop excluding it.
- /404/ was listed. With trailingSlash the export emits out/404/
index.html alongside out/404.html; the directory form needs an
explicit exclusion.
Re-tested against a mock out/ tree that now models the real export
shape (404/ directory, packages/ page plus release-info.json).1 parent 9e46914 commit ce4cdbf
1 file changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
22 | | - | |
23 | 25 | | |
| 26 | + | |
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
| |||
0 commit comments