WORKERS_CI_BRANCH not being set properly in build
I am building my vite project (static website) and I'm trying to use the
I am seeing "Variables cannot be added to a Worker that only has static assets," but presumably these would still be added to the build, no?
Also, for more info, I'm working on an app that has a frontend and a backend, but we need to get preview deployments working. The frontend and backend are seperate workers, and I'm going to referance the backend from the frontend using the presumed preview URL. If there's a better way to do this (i.e. bundle everything into one worker), please do let me know!
WORKERS_CI_BRANCH env variable during the build process. However, it seems to be getting set to undefined for whatever reason. I am seeing "Variables cannot be added to a Worker that only has static assets," but presumably these would still be added to the build, no?
Also, for more info, I'm working on an app that has a frontend and a backend, but we need to get preview deployments working. The frontend and backend are seperate workers, and I'm going to referance the backend from the frontend using the presumed preview URL. If there's a better way to do this (i.e. bundle everything into one worker), please do let me know!
