Open joshka opened 6 days ago
I'm not sure what this is asking for, we do support custom builds with exactly this syntax (not sure about multi-line, but that is a TOML thing). Are you saying that Workers CI should respect this configuration and doesn't today?
Sorry, I was a little ambiguous in my ask. I meant that these build commands should be documented, vetted for correctness, and added to the templates so that users don't have to search to work out how to make the applications generated from templates work with the cloudflare build. It was surprising to see a failure immediately when hooking up my github repo for the first time, and to have no documentation about what was necessary to make it work. After searching github issues, docs, etc. I eventually found guidance in a discord comment on how to get this working. I don't yet know what's the right way to only run this when building on cloudflare and not when building locally.
So to be more clear:
I was planning to have Rust and worker-build
added to the default build image which will hopefully eliminate this issue.
Is there an existing issue for this?
Description
Custom build commands to support building on cloudflare should be something like:
Note, this causes the same command to be run when using wrangler dev locally, which is a bit of a pain because you usually don't want to reinstall rustup etc. These are noops (at least in my own environment), but maybe not noops everywhere.
What I've actually done is added these to a prod environment and used that, but I'm not certain this is the right way to handle this either.