Skip to content

Commit ca7eb5e

Browse files
Add Cloudflare Workers configuration
1 parent 1372c82 commit ca7eb5e

6 files changed

Lines changed: 3378 additions & 1241 deletions

File tree

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,9 @@ coverage/
6262
.settings/
6363
*.sublime-project
6464
*.sublime-workspace
65+
66+
# wrangler files
67+
.wrangler
68+
.dev.vars*
69+
!.dev.vars.example
70+
!.env.example

astro.config.mjs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import icon from 'astro-icon';
55
import tailwindcss from '@tailwindcss/vite';
66
import { siteConfig } from './src/config';
77

8+
import cloudflare from '@astrojs/cloudflare';
9+
810
// Site URL from environment variable with localhost fallback
911
const siteUrl = process.env.SITE_URL || 'http://localhost:4321';
1012

@@ -28,6 +30,7 @@ function envCheckIntegration() {
2830

2931
export default defineConfig({
3032
site: siteUrl,
33+
3134
integrations: [
3235
mdx(),
3336
icon(),
@@ -47,7 +50,10 @@ export default defineConfig({
4750
},
4851
}),
4952
],
53+
5054
vite: {
5155
plugins: [tailwindcss()],
5256
},
53-
});
57+
58+
adapter: cloudflare()
59+
});

0 commit comments

Comments
 (0)