Skip to content

Commit 325ce19

Browse files
committed
fix: properly transform images & implement cache busting
1 parent 4826506 commit 325ce19

19 files changed

+510
-428
lines changed

astro.config.mjs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,20 @@ export default defineConfig({
1414
output: "server",
1515

1616
vite: {
17-
plugins: [tailwindcss()],
17+
plugins:
18+
[
19+
// @ts-ignore
20+
tailwindcss()
21+
],
1822
},
1923

2024
adapter: node({
2125
mode: "standalone"
2226
}),
27+
28+
image: {
29+
service: {
30+
entrypoint: "src/services/image.ts"
31+
}
32+
}
2333
});

package-lock.json

Lines changed: 432 additions & 415 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"astro-icon": "^1.1.5",
1919
"flowbite": "^3.1.2",
2020
"moment": "^2.30.1",
21+
"sharp": "^0.34.3",
2122
"tailwindcss": "^4.1.11",
2223
"typescript": "^5.9.2"
2324
},
@@ -26,7 +27,8 @@
2627
"@tailwindcss/typography": "^0.5.16",
2728
"prettier": "3.6.2",
2829
"prettier-plugin-astro": "0.14.1",
29-
"prettier-plugin-tailwindcss": "^0.6.14"
30+
"prettier-plugin-tailwindcss": "^0.6.14",
31+
"@types/node": "^24.3.1"
3032
},
3133
"prettier": {
3234
"plugins": [
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)