Skip to content

Commit 852a6a3

Browse files
authored
Merge pull request #2 from initializ/cloudflare/workers-autoconfig
Add Cloudflare Workers configuration
2 parents 9b883fe + 9ff2fea commit 852a6a3

6 files changed

Lines changed: 2188 additions & 46 deletions

File tree

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,9 @@ src/content/skills/*.md
1616
!src/content/skills/.gitkeep
1717
src/content/changelog/*.md
1818
!src/content/changelog/.gitkeep
19+
20+
# wrangler files
21+
.wrangler
22+
.dev.vars*
23+
!.dev.vars.example
24+
!.env.example

astro.config.mjs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,24 @@ import mdx from '@astrojs/mdx';
44
import sitemap from '@astrojs/sitemap';
55
import tailwindcss from '@tailwindcss/vite';
66

7+
import cloudflare from '@astrojs/cloudflare';
8+
79
export default defineConfig({
810
site: 'https://useforge.ai',
911
integrations: [react(), mdx(), sitemap()],
12+
1013
vite: {
1114
plugins: [tailwindcss()],
1215
ssr: {
1316
noExternal: ['@resvg/resvg-js'],
1417
},
1518
},
19+
1620
markdown: {
1721
shikiConfig: {
1822
theme: 'github-dark',
1923
},
2024
},
21-
});
25+
26+
adapter: cloudflare(),
27+
});

0 commit comments

Comments
 (0)