Build Requests `account_id` in Wrangler.toml but fails with `account_id`
https://dash.cloudflare.com/ab7347813b21ea6079df4cb18c4bb9e8/pages/view/exchange-traded-fund/952e6991-3192-47dd-9121-12b7bbce5d01
https://dash.cloudflare.com/ab7347813b21ea6079df4cb18c4bb9e8/pages/view/exchange-traded-fund/caf73d0b-3b79-4c19-9ce6-e83e33dac0f4
wrangler.toml
build command
npm run build && npx wrangler d1 migrations apply etf
7 Replies
@Walshy | Deploying
We have been discussing this internally and account_id should be supported soon 🙂
:soontm:
@Walshy | Deploying so how do I deploy my migrations?
the answer always seems "don't use Pages"
you shouldn't need the account_id for migrations
CLOUDFLARE_ACCOUNT_ID should still work
alternatively, wait for it to be supported soon
set that in my secrets?
it says I need account Id because I have multiple accounts
if you're running this in ci build thean yeah secrets/env vars
it makes you select an account on
npx wrangler d1 migrations apply
I'm doing it as a build script
npm run build && npx wrangler d1 migrations apply <db_name>
looks like that works 👍🏼