Skip to content

Commit 40a102c

Browse files
Add Cloudflare Workers configuration
1 parent 6dbb743 commit 40a102c

File tree

6 files changed

+2177
-20
lines changed

6 files changed

+2177
-20
lines changed

.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
@@ -2,10 +2,15 @@ import { defineConfig } from 'astro/config';
22
import react from '@astrojs/react';
33
import tailwindcss from '@tailwindcss/vite';
44

5+
import cloudflare from '@astrojs/cloudflare';
6+
57
export default defineConfig({
68
integrations: [react()],
9+
710
vite: {
811
plugins: [tailwindcss()]
912
},
13+
1014
site: 'https://dev-tools.devtoolsite.workers.dev',
11-
});
15+
adapter: cloudflare(),
16+
});

0 commit comments

Comments
 (0)