Workers version deployment with build
Hello. I have a Workers project that needs to be
build
prior to deploy
ing. Cloudflare automatically builds and deploys a new version when there's a commit to the main branch on GitHub, which is helpful. I understand that automatically creating Preview Deployments similar to Pages isn't supported for Workers yet. That's fine. However, how can I create a version that isn't deployed automatically? Doing wrangler versions upload
creates a broken version of my app, I'm suspecting due to the necessary build
step prior to that, as things are working locally. Should versions upload
suffice even when there's a build step, and I'm simply having a "works locally, fails on remote" problem here?4 Replies
Previews exist for Workers.
As for what you should do to upload, you're right - you should versions upload
You'll need to configure your deploy command in the settings to be versions upload. It sounds like you didn't do that correctly.
Ah, I can change the deploy command in the settings to not deploy %100 but simply create a version. I previously thought of that, not sure why I forgot now, thanks.
Previews do exist, but my Pages repo was automatically building Preview Versions for Pull Requests on GitHub
I take that that isn't available for Workers yet?
Yeah PR builds/comments isn't a thing yet
(acknowledging your ooo! no pressure on replying)
Does the use of "yet" confirm it's on the roadmap 👀