Skip to content

Commit 080e97a

Browse files
authored
Merge pull request #1 from Naapperas/cloudflare/workers-autoconfig
Add Cloudflare Workers configuration
2 parents 9b21fb4 + e953a83 commit 080e97a

6 files changed

Lines changed: 6942 additions & 5414 deletions

File tree

.gitignore

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

2020
# macOS-specific files
2121
.DS_Store
22+
23+
# wrangler files
24+
.wrangler
25+
.dev.vars*
26+
!.dev.vars.example
27+
!.env.example

astro.config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@ import tailwind from "@astrojs/tailwind";
44

55
import icon from 'astro-icon';
66

7+
import cloudflare from "@astrojs/cloudflare";
8+
79
// https://astro.build/config
810
export default defineConfig({
911
site: 'https://naapperas.github.io',
1012
integrations: [tailwind(), icon()],
11-
trailingSlash: 'ignore'
13+
trailingSlash: 'ignore',
14+
adapter: cloudflare()
1215
});

0 commit comments

Comments
 (0)