mr_manter
CDCloudflare Developers
•Created by mr_manter on 9/5/2024 in #pages-help
Automatically applying D1 migrations when deploying pages
@HardlyWorkin' It wasn't clear to me that that was possible. I initially tried it by adding the command to the build script in package.json, which failed due to missing the API key (fair enough, I could get one and add one).
Only thing that stopped me doing that next step was after some googling I found people saying it doesn't work at all via the git integration builds even with API keys, so I didn't bother. I can't find the threads on it now, but I think they were in open issues on one of the cloudflare repos.
5 replies
CDCloudflare Developers
•Created by mr_manter on 9/5/2024 in #pages-help
Automatically applying D1 migrations when deploying pages
Until I get a better way to do it, I'm sharing a gist of my GitHub actions flow to perform the deploy. It's working for me, even if I'd rather not having it in GitHub Actions. https://gist.github.com/manterfield/80bc8dff4e609eeeca9679360d358d98 hopeful it saves others a bit of time.
5 replies