fix(build): add wrangler.build.toml for CI and fix autoconfig

Wrangler 4.94+ introduced --experimental-autoconfig (default: true) which
fails in non-interactive CI environments. Without a committed wrangler.toml,
the release action build was broken.

- Add wrangler.build.toml with minimal config (placeholder KV ID, no secrets)
- Update build script to use wrangler.build.toml + --no-experimental-autoconfig

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Julien Herr
2026-05-22 23:47:48 +02:00
parent 1b31665b4f
commit 78117421fd
2 changed files with 14 additions and 1 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
"main": "dist/worker.js", "main": "dist/worker.js",
"scripts": { "scripts": {
"build:client": "node scripts/build-client.mjs", "build:client": "node scripts/build-client.mjs",
"build": "wrangler deploy --dry-run --outdir=dist", "build": "wrangler deploy --config wrangler.build.toml --dry-run --outdir=dist --no-experimental-autoconfig",
"prebuild": "npm run build:client", "prebuild": "npm run build:client",
"format": "prettier --write '**/*.{js,ts,css,json,md}'", "format": "prettier --write '**/*.{js,ts,css,json,md}'",
"format:check": "prettier --check '**/*.{js,ts,css,json,md}'", "format:check": "prettier --check '**/*.{js,ts,css,json,md}'",
+13
View File
@@ -0,0 +1,13 @@
name = "kill-the-news"
main = "src/index.ts"
compatibility_date = "2025-01-01"
compatibility_flags = ["nodejs_compat"]
kv_namespaces = [
{ binding = "EMAIL_STORAGE", id = "00000000000000000000000000000000" }
]
[[rules]]
type = "Text"
globs = ["**/*.css"]
fallthrough = false