Closed majames closed 3 months ago
Ah, turns out that the reason the deploy was failing because i'd misconfigured the D1 database_id
in my preview env. So I think the --branch
hack might actually work
Confirmed, the --branch
hack works for changing the pages deploy env even when running on main
Describe the solution
I want to be able to be able to deploy my pages project default branch (
main
) to both the preview or production env depending upon whether I set the--env
CLI flag (similar to workers).I attempted to "hack" this using the
--branch
CLI flag but that resulted in the following error when attempting to deploy on main: