Commit 930bc76031
930bc760312c7aa6a00991ff0e0e512af784b7c6
parent: 122bb0fc43
Unsigned
Alicia Sykes <alicia@omg.lol> · 2026-02-28 17:25 UTC
Resolve sitemap issue in web prevenintg build
Layout: unified · split
web/package.json
+1 −1
| @@ -20,7 +20,7 @@ |
| 20 | 20 | "@astrojs/check": "^0.9.6", |
| 21 | 21 | "@astrojs/netlify": "^5.5.4", |
| 22 | 22 | "@astrojs/partytown": "^2.1.4", |
| 23 | | "@astrojs/sitemap": "^3.7.0", |
| 23 | "@astrojs/sitemap": "3.5.1", |
| 24 | 24 | "@astrojs/svelte": "^5.7.3", |
| 25 | 25 | "@astrojs/vercel": "^7.8.2", |
| 26 | 26 | "@fortawesome/fontawesome-pro": "^6.5.1", |
web/src/utils/fetch-repo-info.ts
+4
| @@ -82,9 +82,13 @@ const fetchFromWorker = async (github: string): Promise<GitHubStatsResponse | nu |
| 82 | 82 | return res.json(); |
| 83 | 83 | }; |
| 84 | 84 | |
| 85 | const normalizeRepo = (github: string): string => |
| 86 | github.replace(/^https?:\/\/github\.com\//, ''); |
| 87 | |
| 85 | 88 | export const fetchGitHubStats = async ( |
| 86 | 89 | github: string, |
| 87 | 90 | ): Promise<GitHubStatsResponse | null> => { |
| 91 | github = normalizeRepo(github); |
| 88 | 92 | try { |
| 89 | 93 | const result = await fetchFromGitHub(github); |
| 90 | 94 | if (result) return result; |
web/yarn.lock
+11 −11
| @@ -134,14 +134,14 @@ |
| 134 | 134 | dependencies: |
| 135 | 135 | prismjs "^1.29.0" |
| 136 | 136 | |
| 137 | | "@astrojs/sitemap@^3.7.0": |
| 138 | | version "3.7.0" |
| 139 | | resolved "https://registry.yarnpkg.com/@astrojs/sitemap/-/sitemap-3.7.0.tgz#26ffe9b2f51e2720e5e96f358ecc20f4d87f7218" |
| 140 | | integrity sha512-+qxjUrz6Jcgh+D5VE1gKUJTA3pSthuPHe6Ao5JCxok794Lewx8hBFaWHtOnN0ntb2lfOf7gvOi9TefUswQ/ZVA== |
| 137 | "@astrojs/sitemap@3.5.1": |
| 138 | version "3.5.1" |
| 139 | resolved "https://registry.yarnpkg.com/@astrojs/sitemap/-/sitemap-3.5.1.tgz#70dac9eee4fdfd9da9e1809e107d6747652332fc" |
| 140 | integrity sha512-uX5z52GLtQTgOe8r3jeGmFRYrFe52mdpLYJzqjvL1cdy5Kg3MLOZEvaZ/OCH0fSq0t7e50uJQ6oBMZG0ffszBg== |
| 141 | 141 | dependencies: |
| 142 | | sitemap "^8.0.2" |
| 142 | sitemap "^8.0.0" |
| 143 | 143 | stream-replace-string "^2.0.0" |
| 144 | | zod "^3.25.76" |
| 144 | zod "^3.24.4" |
| 145 | 145 | |
| 146 | 146 | "@astrojs/svelte@^5.7.3": |
| 147 | 147 | version "5.7.3" |
| @@ -4707,10 +4707,10 @@ sisteransi@^1.0.5: |
| 4707 | 4707 | resolved "https://registry.yarnpkg.com/sisteransi/-/sisteransi-1.0.5.tgz#134d681297756437cc05ca01370d3a7a571075ed" |
| 4708 | 4708 | integrity sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg== |
| 4709 | 4709 | |
| 4710 | | sitemap@^8.0.2: |
| 4711 | | version "8.0.2" |
| 4712 | | resolved "https://registry.yarnpkg.com/sitemap/-/sitemap-8.0.2.tgz#27bddb5fc2c61a1cf8f0194674cd89d762c9f5ae" |
| 4713 | | integrity sha512-LwktpJcyZDoa0IL6KT++lQ53pbSrx2c9ge41/SeLTyqy2XUNA6uR4+P9u5IVo5lPeL2arAcOKn1aZAxoYbCKlQ== |
| 4710 | sitemap@^8.0.0: |
| 4711 | version "8.0.3" |
| 4712 | resolved "https://registry.yarnpkg.com/sitemap/-/sitemap-8.0.3.tgz#f85782422c527b3e149d3da9ea96ab02cab1f301" |
| 4713 | integrity sha512-9Ew1tR2WYw8RGE2XLy7GjkusvYXy8Rg6y8TYuBuQMfIEdGcWoJpY2Wr5DzsEiL/TKCw56+YKTCCUHglorEYK+A== |
| 4714 | 4714 | dependencies: |
| 4715 | 4715 | "@types/node" "^17.0.5" |
| 4716 | 4716 | "@types/sax" "^1.2.1" |
| @@ -5658,7 +5658,7 @@ zod@3.22.3: |
| 5658 | 5658 | resolved "https://registry.yarnpkg.com/zod/-/zod-3.22.3.tgz#2fbc96118b174290d94e8896371c95629e87a060" |
| 5659 | 5659 | integrity sha512-EjIevzuJRiRPbVH4mGc8nApb/lVLKVpmUhAaR5R5doKGfAnGJ6Gr3CViAVjP+4FWSxCsybeWQdcgCtbX+7oZug== |
| 5660 | 5660 | |
| 5661 | | zod@^3.23.8, zod@^3.25.76: |
| 5661 | zod@^3.23.8, zod@^3.24.4: |
| 5662 | 5662 | version "3.25.76" |
| 5663 | 5663 | resolved "https://registry.yarnpkg.com/zod/-/zod-3.25.76.tgz#26841c3f6fd22a6a2760e7ccb719179768471e34" |
| 5664 | 5664 | integrity sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ== |