feat: add partytown! intergration

This commit is contained in:
草师傅 2025-08-06 22:11:53 +08:00
parent 92db311e59
commit 39e3703d73
Signed by: gb
GPG key ID: 43330A030E2D6478
3 changed files with 24 additions and 1 deletions

View file

@ -10,6 +10,8 @@ import cloudflare from '@astrojs/cloudflare';
import remarkMath from "remark-math";
import rehypeKatex from "rehype-katex";
import partytown from '@astrojs/partytown';
export default defineConfig({
site: 'https://terminal-blog.example.com',
base: '/',
@ -32,7 +34,7 @@ export default defineConfig({
rehypePlugins: [ rehypeKatex ]
},
integrations: [sitemap(), mdx()],
integrations: [sitemap(), mdx(), partytown()],
adapter: cloudflare()
});