Skip to content

Commit ed87132

Browse files
Add Cloudflare Workers configuration
1 parent e3e5987 commit ed87132

6 files changed

Lines changed: 2171 additions & 16 deletions

File tree

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,10 @@ dist/
33
.astro/
44
.DS_Store
55
*.log
6+
7+
# wrangler files
8+
.wrangler
9+
.dev.vars*
10+
!.dev.vars.example
11+
.env*
12+
!.env.example

astro.config.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,15 @@ import react from '@astrojs/react';
33
import sitemap from '@astrojs/sitemap';
44
import tailwindcss from '@tailwindcss/vite';
55

6+
import cloudflare from '@astrojs/cloudflare';
7+
68
export default defineConfig({
79
integrations: [react(), sitemap()],
10+
811
vite: {
912
plugins: [tailwindcss()]
1013
},
14+
1115
site: 'https://dev-tools.devtoolsite.workers.dev',
12-
});
16+
adapter: cloudflare(),
17+
});

0 commit comments

Comments
 (0)