mirror of
https://github.com/KazooTTT/kazoottt-blog.git
synced 2025-06-17 07:51:22 +08:00
chore: use cf
This commit is contained in:
@ -8,14 +8,14 @@ import rehypeExternalLinks from 'rehype-external-links'
|
||||
import expressiveCode from 'astro-expressive-code'
|
||||
import { expressiveCodeOptions } from './src/site.config'
|
||||
import icon from 'astro-icon'
|
||||
|
||||
import vercel from '@astrojs/vercel/serverless'
|
||||
|
||||
import react from '@astrojs/react'
|
||||
import cloudflare from '@astrojs/cloudflare'
|
||||
|
||||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
site: 'https://blog.kazoottt.top',
|
||||
output: 'server',
|
||||
adapter: cloudflare(),
|
||||
redirects: {
|
||||
'/articles': '/posts',
|
||||
'/articles/[...slug]': '/blogs/[...slug]',
|
||||
@ -53,8 +53,4 @@ export default defineConfig({
|
||||
}
|
||||
},
|
||||
prefetch: true,
|
||||
output: 'server',
|
||||
adapter: vercel({
|
||||
webAnalytics: { enabled: true }
|
||||
})
|
||||
})
|
||||
|
@ -18,16 +18,15 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/check": "^0.5.6",
|
||||
"@astrojs/cloudflare": "^11.2.0",
|
||||
"@astrojs/mdx": "^2.1.1",
|
||||
"@astrojs/react": "^3.6.2",
|
||||
"@astrojs/rss": "^4.0.5",
|
||||
"@astrojs/sitemap": "^3.1.1",
|
||||
"@astrojs/tailwind": "^5.1.0",
|
||||
"@astrojs/vercel": "^7.3.6",
|
||||
"@giscus/react": "^3.0.0",
|
||||
"@types/react": "^18.3.11",
|
||||
"@types/react-dom": "^18.3.0",
|
||||
"@vercel/analytics": "^1.2.2",
|
||||
"astro": "^4.4.15",
|
||||
"astro-expressive-code": "^0.33.5",
|
||||
"astro-icon": "^1.1.0",
|
||||
|
1311
pnpm-lock.yaml
generated
1311
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user