Skip to content

Commit 0923300

Browse files
committed
deps: update astro
1 parent f0a1104 commit 0923300

3 files changed

Lines changed: 145 additions & 60 deletions

File tree

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"@expressive-code/plugin-collapsible-sections": "^0.41.3",
2424
"@fortawesome/free-brands-svg-icons": "^6.7.2",
2525
"@fortawesome/free-solid-svg-icons": "^6.7.2",
26-
"astro": "5.14.7",
26+
"astro": "^5.16.0",
2727
"astro-expressive-code": "^0.41.3",
2828
"date-fns": "^4.1.0",
2929
"ghostsui": "2.0.0-beta.4",
@@ -65,6 +65,9 @@
6565
"esbuild",
6666
"sharp",
6767
"workerd"
68-
]
68+
],
69+
"patchedDependencies": {
70+
"astro": "patches/astro.patch"
71+
}
6972
}
7073
}

patches/astro.patch

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/dist/content/utils.js b/dist/content/utils.js
2+
index dc05fab1eb8bb0fcaffc222bed4b7a1dfdde6824..6401479093d996d0c4739cff124d50ad744298f1 100644
3+
--- a/dist/content/utils.js
4+
+++ b/dist/content/utils.js
5+
@@ -128,7 +128,7 @@ async function getEntryDataAndImages(entry, collectionConfig, shouldEmitFile, ex
6+
schema = schema({
7+
image: () => z.string().transform((val) => {
8+
let normalizedPath = val;
9+
- if (val && !val.startsWith("./") && !val.startsWith("../") && !val.startsWith("/") && !val.startsWith("~") && !val.startsWith("@") && !val.includes("://")) {
10+
+ if (val && !val.startsWith("./") && !val.startsWith("../") && !val.startsWith("/") && !val.startsWith("~") && !val.startsWith("@") && !val.includes("://") && !val.startsWith("$")) {
11+
normalizedPath = `./${val}`;
12+
}
13+
imageImports.add(normalizedPath);

0 commit comments

Comments
 (0)