Skip to content

Commit 95d6ff5

Browse files
Add Cloudflare Workers configuration
1 parent 70f8701 commit 95d6ff5

7 files changed

Lines changed: 942 additions & 63 deletions

File tree

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,9 @@ pnpm-debug.log*
2222

2323
# jetbrains setting folder
2424
.idea/
25+
26+
# wrangler files
27+
.wrangler
28+
.dev.vars*
29+
!.dev.vars.example
30+
!.env.example

astro.config.mjs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,20 @@ import tailwindcss from '@tailwindcss/vite';
55
import remarkGfm from 'remark-gfm';
66
import rehypeSlug from 'rehype-slug';
77

8+
import cloudflare from '@astrojs/cloudflare';
9+
810
// https://astro.build/config
911
export default defineConfig({
1012
site: 'https://mirrorcontext.ium.dev',
13+
1114
markdown: {
1215
remarkPlugins: [remarkGfm],
1316
rehypePlugins: [rehypeSlug]
1417
},
18+
1519
vite: {
1620
plugins: [tailwindcss()]
17-
}
18-
});
21+
},
22+
23+
adapter: cloudflare()
24+
});

0 commit comments

Comments
 (0)