mykiwi/mykiwi.blogpublic Fork 0
39fe402
Commits
Clone
git clone https://git.rickub.com/mykiwi/mykiwi.blog.git
git clone ssh://git@rickub.com/mykiwi/mykiwi.blog.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Move Cloudflare account ID out of .env into wrangler.toml

OpenTofu only auto-maps TF_VAR_*-prefixed env vars, so a plain
CLOUDFLARE_ACCOUNT_ID in .env was never actually consumed - it just
sat there unused while infra/variables.tf's hardcoded default did the
real work. wrangler, unlike Tofu, does read a plain account_id, so
give it its own wrangler.toml and point the deploy app's wrangler
invocation at it with --config.
Romain Gautier committed 2026-09-18T22:12:36+02:00 Browse files
39fe402 parent: 47c5f42
modified .env.dist +0 -1
@@ -1,3 +1,2 @@
1-CLOUDFLARE_ACCOUNT_ID=d8149974c9ab26867fdc9cd579711d7d
21 CLOUDFLARE_API_TOKEN=
32 # https://dash.cloudflare.com/profile/api-tokens
@@ -1,3 +1,2 @@
1-CLOUDFLARE_ACCOUNT_ID=d8149974c9ab26867fdc9cd579711d7d
2 CLOUDFLARE_API_TOKEN=1 CLOUDFLARE_API_TOKEN=
3 # https://dash.cloudflare.com/profile/api-tokens2 # https://dash.cloudflare.com/profile/api-tokens
modified flake.nix +1 -1
@@ -92,7 +92,7 @@
9292 lang="''${1:?usage: nix run .#deploy -- <lang>}"
9393 root="$(git rev-parse --show-toplevel)"
9494 project="mykiwi-blog-$lang"
95- wrangler pages deploy "$root/result/$lang" --project-name="$project" --branch=main
95+ wrangler pages deploy "$root/result/$lang" --project-name="$project" --branch=main --config="$root/wrangler.toml"
9696 '';
9797 }}/bin/mykiwi-blog-deploy";
9898 };
@@ -92,7 +92,7 @@
92 lang="''${1:?usage: nix run .#deploy -- <lang>}"92 lang="''${1:?usage: nix run .#deploy -- <lang>}"
93 root="$(git rev-parse --show-toplevel)"93 root="$(git rev-parse --show-toplevel)"
94 project="mykiwi-blog-$lang"94 project="mykiwi-blog-$lang"
95- wrangler pages deploy "$root/result/$lang" --project-name="$project" --branch=main95+ wrangler pages deploy "$root/result/$lang" --project-name="$project" --branch=main --config="$root/wrangler.toml"
96 '';96 '';
97 }}/bin/mykiwi-blog-deploy";97 }}/bin/mykiwi-blog-deploy";
98 };98 };
added wrangler.toml +1 -0
new file mode 100644
@@ -0,0 +1 @@
1+account_id = "d8149974c9ab26867fdc9cd579711d7d"
new file mode 100644
@@ -0,0 +1 @@
1+account_id = "d8149974c9ab26867fdc9cd579711d7d"