Skip to content

Commit 77b5bf5

Browse files
ctrimmclaude
andcommitted
Upgrade Astro 4 → 5; fix sitemap astro:routes:resolved crash
- Upgrade astro 4.16.19 → 5.17.3 and all official integrations - Remove deprecated @astrojs/tailwind; replace with postcss.config.cjs so Tailwind v3 continues to work via Vite's built-in PostCSS support - Rename ViewTransitions → ClientRouter in base-head.astro (Astro 5) - Add autoprefixer as a devDependency for PostCSS Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 9b226e8 commit 77b5bf5

File tree

5 files changed

+1073
-1522
lines changed

5 files changed

+1073
-1522
lines changed

astro.config.mjs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { defineConfig } from "astro/config";
22
import react from "@astrojs/react";
33
import mdx from "@astrojs/mdx";
4-
import tailwind from "@astrojs/tailwind";
54
import sitemap from "@astrojs/sitemap";
65
import icon from "astro-icon";
76

@@ -40,9 +39,6 @@ export default defineConfig({
4039
}),
4140
sitemap(),
4241
react(),
43-
tailwind({
44-
applyBaseStyles: false,
45-
}),
4642
icon(),
4743
],
4844
});

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,12 @@
2424
"sst:remove": "sst remove"
2525
},
2626
"dependencies": {
27-
"@astrojs/mdx": "^2.1.1",
28-
"@astrojs/node": "^8.3.4",
29-
"@astrojs/react": "^3.0.9",
30-
"@astrojs/rss": "^4.0.4",
31-
"@astrojs/sitemap": "^3.1.5",
32-
"@astrojs/tailwind": "^5.1.0",
33-
"@astrojs/vercel": "^6.1.0",
27+
"@astrojs/mdx": "^4.3.13",
28+
"@astrojs/node": "^9.5.4",
29+
"@astrojs/react": "^4.4.2",
30+
"@astrojs/rss": "^4.0.15",
31+
"@astrojs/sitemap": "^3.7.0",
32+
"@astrojs/vercel": "^9.0.4",
3433
"@aws-sdk/client-dynamodb": "^3.699.0",
3534
"@iconify-json/lucide": "^1.2.92",
3635
"@iconify-json/mdi": "^1.2.3",
@@ -49,7 +48,7 @@
4948
"@types/aws-lambda": "^8.10.145",
5049
"@types/react": "^18.2.51",
5150
"@types/react-dom": "^18.2.18",
52-
"astro": "^4.3.0",
51+
"astro": "^5.17.3",
5352
"astro-icon": "^1.1.5",
5453
"balance-text": "^3.3.1",
5554
"class-variance-authority": "^0.7.0",
@@ -72,6 +71,7 @@
7271
"@tailwindcss/typography": "^0.5.10",
7372
"@tsconfig/node20": "^20.1.4",
7473
"@types/node": "^22.9.2",
74+
"autoprefixer": "^10.4.24",
7575
"mdast-util-toc": "^7.0.0",
7676
"remark": "^15.0.1",
7777
"tsx": "^4.19.2",

0 commit comments

Comments
 (0)