mirror of
https://github.com/KazooTTT/kazoottt-blog.git
synced 2025-06-23 02:31:33 +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 cloudflare from '@astrojs/cloudflare';
|
||||
|
||||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
site: 'https://blog.kazoottt.top',
|
||||
integrations: [
|
||||
expressiveCode(expressiveCodeOptions),
|
||||
tailwind({
|
||||
applyBaseStyles: false
|
||||
}),
|
||||
sitemap(),
|
||||
mdx(),
|
||||
icon(),
|
||||
react()
|
||||
site: 'https://blog.kazoottt.top',
|
||||
|
||||
integrations: [
|
||||
expressiveCode(expressiveCodeOptions),
|
||||
tailwind({
|
||||
applyBaseStyles: false
|
||||
}),
|
||||
sitemap(),
|
||||
mdx(),
|
||||
icon(),
|
||||
react()
|
||||
],
|
||||
markdown: {
|
||||
remarkPlugins: [remarkUnwrapImages, remarkReadingTime],
|
||||
rehypePlugins: [
|
||||
[
|
||||
rehypeExternalLinks,
|
||||
{
|
||||
target: '_blank',
|
||||
rel: ['nofollow, noopener, noreferrer']
|
||||
}
|
||||
]
|
||||
],
|
||||
remarkRehype: {
|
||||
footnoteLabelProperties: {
|
||||
className: ['']
|
||||
}
|
||||
}
|
||||
|
||||
markdown: {
|
||||
remarkPlugins: [remarkUnwrapImages, remarkReadingTime],
|
||||
rehypePlugins: [
|
||||
[
|
||||
rehypeExternalLinks,
|
||||
{
|
||||
target: '_blank',
|
||||
rel: ['nofollow, noopener, noreferrer']
|
||||
}
|
||||
]
|
||||
],
|
||||
remarkRehype: {
|
||||
footnoteLabelProperties: {
|
||||
className: ['']
|
||||
}
|
||||
}
|
||||
},
|
||||
prefetch: true,
|
||||
output: 'server',
|
||||
})
|
||||
|
||||
prefetch: true,
|
||||
output: 'server',
|
||||
adapter: cloudflare(),
|
||||
})
|
Reference in New Issue
Block a user