Skip to content

Commit 8b5180d

Browse files
committed
feat: migrate astro to v5
1 parent 90763b0 commit 8b5180d

File tree

13 files changed

+4255
-4424
lines changed

13 files changed

+4255
-4424
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Astro + Notion + Blog
99
- Easy to customize
1010
- Simpler implemetation: Notion's rendering is achieved simply by markdown-izing pages
1111
- Notion cache ready: it works on Cloudflare Pages
12+
- Support Astro v5 and TailwindCSS v4
1213

1314
💡 Powered by [notiondown](https://github.com/rot1024/notiondown)
1415

astro.config.mjs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
import sitemap from "@astrojs/sitemap";
2-
import tailwind from "@astrojs/tailwind";
32
import { defineConfig } from "astro/config";
43
import robotsTxt from "astro-robots-txt";
54

65
import { BASE_PATH, CUSTOM_DOMAIN } from "./src/constants";
76
import astrotion from "./src/integrations";
87

8+
import tailwindcss from "@tailwindcss/vite";
9+
910
// https://astro.build/config
1011
export default defineConfig({
1112
site: getSite(),
1213
base: BASE_PATH,
13-
integrations: [astrotion(), tailwind(), sitemap(), robotsTxt()],
14-
vite: { optimizeDeps: { exclude: ["@resvg/resvg-js"] } },
14+
integrations: [astrotion(), sitemap(), robotsTxt()],
15+
vite: {
16+
optimizeDeps: { exclude: ["@resvg/resvg-js"] },
17+
plugins: [tailwindcss()]
18+
},
1519
trailingSlash: "always",
1620
});
1721

0 commit comments

Comments
 (0)