Skip to content

Commit c99f2f1

Browse files
Add Cloudflare Workers configuration
1 parent 2f0859f commit c99f2f1

7 files changed

Lines changed: 958 additions & 141 deletions

File tree

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,9 @@ pnpm-debug.log*
2626
# custom prompts and agent configuration
2727
prompts/
2828
AGENTS.md
29+
30+
# wrangler files
31+
.wrangler
32+
.dev.vars*
33+
!.dev.vars.example
34+
!.env.example

astro.config.mjs

Lines changed: 35 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -6,35 +6,41 @@ import { defineConfig, fontProviders } from 'astro/config';
66
import remarkMath from 'remark-math';
77
import rehypeKatex from 'rehype-katex';
88

9+
import cloudflare from '@astrojs/cloudflare';
10+
911
export default defineConfig({
10-
site: 'https://agenticweb.blog',
11-
integrations: [mdx(), sitemap()],
12-
markdown: {
13-
remarkPlugins: [remarkMath],
14-
rehypePlugins: [rehypeKatex],
12+
site: 'https://agenticweb.blog',
13+
integrations: [mdx(), sitemap()],
14+
15+
markdown: {
16+
remarkPlugins: [remarkMath],
17+
rehypePlugins: [rehypeKatex],
1518
},
16-
fonts: [
17-
{
18-
provider: fontProviders.local(),
19-
name: 'Atkinson',
20-
cssVariable: '--font-atkinson',
21-
fallbacks: ['sans-serif'],
22-
options: {
23-
variants: [
24-
{
25-
src: ['./src/assets/fonts/atkinson-regular.woff'],
26-
weight: 400,
27-
style: 'normal',
28-
display: 'swap',
29-
},
30-
{
31-
src: ['./src/assets/fonts/atkinson-bold.woff'],
32-
weight: 700,
33-
style: 'normal',
34-
display: 'swap',
35-
},
36-
],
37-
},
38-
},
19+
20+
fonts: [
21+
{
22+
provider: fontProviders.local(),
23+
name: 'Atkinson',
24+
cssVariable: '--font-atkinson',
25+
fallbacks: ['sans-serif'],
26+
options: {
27+
variants: [
28+
{
29+
src: ['./src/assets/fonts/atkinson-regular.woff'],
30+
weight: 400,
31+
style: 'normal',
32+
display: 'swap',
33+
},
34+
{
35+
src: ['./src/assets/fonts/atkinson-bold.woff'],
36+
weight: 700,
37+
style: 'normal',
38+
display: 'swap',
39+
},
40+
],
41+
},
42+
},
3943
],
40-
});
44+
45+
adapter: cloudflare(),
46+
});

0 commit comments

Comments
 (0)