Skip to content

Commit 492f8cf

Browse files
authored
Merge pull request #171 from vim-jp/og
ogp and SEO tag
2 parents c585b5f + b8c11e5 commit 492f8cf

File tree

15 files changed

+1927
-73
lines changed

15 files changed

+1927
-73
lines changed

2025/astro.config.mjs

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,32 @@
11
// @ts-check
22
import { defineConfig } from 'astro/config';
3+
import Macros from 'unplugin-macros/vite'
4+
5+
import react from '@astrojs/react';
36

47
// https://astro.build/config
58
export default defineConfig({
69
base: '/2025',
10+
711
experimental: {
812
serializeConfig: true,
913
},
14+
1015
redirects: {
1116
'/': '/2025/ja',
1217
'/2025': '/2025/ja',
1318
},
14-
});
19+
20+
vite:{
21+
optimizeDeps: {
22+
exclude: [
23+
'@resvg/resvg-js'
24+
]
25+
},
26+
plugins: [
27+
Macros()
28+
]
29+
},
30+
31+
integrations: [react()]
32+
});

2025/package.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,23 @@
1010
"astro": "astro"
1111
},
1212
"dependencies": {
13+
"@astrojs/react": "^4.2.0",
14+
"@types/react": "^19.0.8",
15+
"@types/react-dom": "^19.0.3",
1316
"astro": "^5.2.5",
14-
"astro-google-fonts-optimizer": "^0.2.2"
17+
"astro-google-fonts-optimizer": "^0.2.2",
18+
"astro-seo": "^0.8.4",
19+
"react": "^19.0.0",
20+
"react-dom": "^19.0.0",
21+
"satori": "^0.12.1",
22+
"ufo": "^1.5.4"
1523
},
1624
"devDependencies": {
1725
"@astrojs/ts-plugin": "^1.10.4",
18-
"typescript": "^5.7.3"
26+
"astro-og-image": "^1.0.7",
27+
"sharp": "^0.33.5",
28+
"typescript": "^5.7.3",
29+
"unplugin-macros": "^0.16.0"
1930
},
2031
"pnpm": {
2132
"executionEnv": {

0 commit comments

Comments
 (0)