Preview deployments URLs
Hey folks,
Context:
I'm migrating my project from Pages to Workers (SvelteKit site).
Branch control >
Version command:
Issue:
While building the preview deployment of my PR branch:
What I tried:
Changing the command to get a bit more infos on what's going on:
Logs:
CF_BRANCH=feat-preview-worker-2
GIT_BRANCH=HEAD
WARNING: no branch context
ALIAS=feat-preview-worker-2
So it seems the issue it that the git branch is not present (because CF check out the commit not the branch ?), so HEAD is taken instead, which seems to lead to the error.
So far it "works" here because I write the alias here with that command, but its not the nominal way of doing I guess...
Any ideas ? Thanks for your help!
Context:
I'm migrating my project from Pages to Workers (SvelteKit site).
Branch control >
Pull request previews: Enabled(default)Version command:
npx wrangler versions upload(default)Issue:
While building the preview deployment of my PR branch:
invalid alias: HEAD [code: 10021]What I tried:
Changing the command to get a bit more infos on what's going on:
Logs:
CF_BRANCH=feat-preview-worker-2
GIT_BRANCH=HEAD
WARNING: no branch context
ALIAS=feat-preview-worker-2
So it seems the issue it that the git branch is not present (because CF check out the commit not the branch ?), so HEAD is taken instead, which seems to lead to the error.
So far it "works" here because I write the alias here with that command, but its not the nominal way of doing I guess...
Any ideas ? Thanks for your help!
