Impl cloudflare wrangler

- Add astro cloudlfare plugin
- Generate cloudflare deploy configs

Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
2025-12-09 17:21:41 +08:00
parent dc123b4ae4
commit faa00aa16c
5 changed files with 877 additions and 27 deletions

13
wrangler.jsonc Normal file
View File

@@ -0,0 +1,13 @@
{
"main": "dist/_worker.js/index.js",
"name": "nixcn-web",
"compatibility_date": "2025-12-09",
"compatibility_flags": ["nodejs_compat", "global_fetch_strictly_public"],
"assets": {
"binding": "ASSETS",
"directory": "./dist",
},
"observability": {
"enabled": true,
},
}