Using import { env } from "cloudflare:
Using import { env } from "cloudflare:workers" doesnt include this variable
CF_PAGES_COMMIT_SHA doesn't exist in workers, and we don't inject anything at runtime, but during the build you have access to some CI vars https://developers.cloudflare.com/workers/ci-cd/builds/configuration/#default-variables
define option that you can use to inject variables that are being replaced on build. process.env and not through the cloudflare:workersworker-configuration.d.ts unless I'm missing out something on my sideworker-configuration.d.tsprocess.env to be populated in yr Worker via flags:

CF_PAGES_COMMIT_SHAdefinecloudflare:workersworker-configuration.d.tsworker-configuration.d.ts"version_metadata": {
"binding": "CF_VERSION_METADATA"
},