mirror of
https://github.com/KazooTTT/kazoottt-blog.git
synced 2025-06-23 10:41:31 +08:00
feat: add cloudflare adapter
This commit is contained in:
@ -11,36 +11,42 @@ import icon from 'astro-icon'
|
|||||||
|
|
||||||
import react from '@astrojs/react'
|
import react from '@astrojs/react'
|
||||||
|
|
||||||
|
import cloudflare from '@astrojs/cloudflare';
|
||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
site: 'https://blog.kazoottt.top',
|
site: 'https://blog.kazoottt.top',
|
||||||
integrations: [
|
|
||||||
expressiveCode(expressiveCodeOptions),
|
integrations: [
|
||||||
tailwind({
|
expressiveCode(expressiveCodeOptions),
|
||||||
applyBaseStyles: false
|
tailwind({
|
||||||
}),
|
applyBaseStyles: false
|
||||||
sitemap(),
|
}),
|
||||||
mdx(),
|
sitemap(),
|
||||||
icon(),
|
mdx(),
|
||||||
react()
|
icon(),
|
||||||
|
react()
|
||||||
],
|
],
|
||||||
markdown: {
|
|
||||||
remarkPlugins: [remarkUnwrapImages, remarkReadingTime],
|
markdown: {
|
||||||
rehypePlugins: [
|
remarkPlugins: [remarkUnwrapImages, remarkReadingTime],
|
||||||
[
|
rehypePlugins: [
|
||||||
rehypeExternalLinks,
|
[
|
||||||
{
|
rehypeExternalLinks,
|
||||||
target: '_blank',
|
{
|
||||||
rel: ['nofollow, noopener, noreferrer']
|
target: '_blank',
|
||||||
}
|
rel: ['nofollow, noopener, noreferrer']
|
||||||
]
|
}
|
||||||
],
|
]
|
||||||
remarkRehype: {
|
],
|
||||||
footnoteLabelProperties: {
|
remarkRehype: {
|
||||||
className: ['']
|
footnoteLabelProperties: {
|
||||||
}
|
className: ['']
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
prefetch: true,
|
|
||||||
output: 'server',
|
prefetch: true,
|
||||||
|
output: 'server',
|
||||||
|
adapter: cloudflare(),
|
||||||
})
|
})
|
@ -18,6 +18,7 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/check": "^0.5.6",
|
"@astrojs/check": "^0.5.6",
|
||||||
|
"@astrojs/cloudflare": "^11.1.0",
|
||||||
"@astrojs/mdx": "^2.1.1",
|
"@astrojs/mdx": "^2.1.1",
|
||||||
"@astrojs/react": "^3.6.2",
|
"@astrojs/react": "^3.6.2",
|
||||||
"@astrojs/rss": "^4.0.5",
|
"@astrojs/rss": "^4.0.5",
|
||||||
|
1290
pnpm-lock.yaml
generated
1290
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user