Skip to content

Commit 5fac7f1

Browse files
Add Cloudflare Workers configuration
1 parent f156a36 commit 5fac7f1

File tree

4 files changed

+38
-13
lines changed

4 files changed

+38
-13
lines changed

landing/astro.config.mjs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,16 @@ import tailwindcss from "@tailwindcss/vite";
44
import sitemap from "@astrojs/sitemap";
55

66

7+
import cloudflare from "@astrojs/cloudflare";
8+
9+
710
// https://astro.build/config
811
export default defineConfig({
912
vite: {
1013
plugins: [tailwindcss()]
1114
},
15+
1216
site: "https://wave.mxv.sh",
13-
integrations: [sitemap({ filter: (page) => !page.includes("/og-banner") })]
14-
});
17+
integrations: [sitemap({ filter: (page) => !page.includes("/og-banner") })],
18+
adapter: cloudflare()
19+
});

landing/bun.lock

Lines changed: 16 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

landing/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@
1414
"deploy": "bun run build && wrangler deploy"
1515
},
1616
"dependencies": {
17+
"@astrojs/cloudflare": "^13.1.7",
1718
"@astrojs/sitemap": "^3.7.2",
1819
"@lucide/astro": "^1.7.0",
1920
"astro": "^6.1.1",
20-
"wrangler": "^4.78.0"
21+
"wrangler": "^4.80.0"
2122
},
2223
"devDependencies": {
2324
"@tailwindcss/vite": "^4.2.2",

landing/wrangler.jsonc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"compatibility_date": "2026-04-04",
3+
"compatibility_flags": ["global_fetch_strictly_public"],
4+
"name": "landing",
5+
"main": "@astrojs/cloudflare/entrypoints/server",
6+
"assets": {
7+
"directory": "./dist",
8+
"binding": "ASSETS"
9+
},
10+
"observability": {
11+
"enabled": true
12+
}
13+
}

0 commit comments

Comments
 (0)