Access environment variables via Jekyll

For Workes & Pages, what is the name of the domain?

N/A

What is the issue or error you’re encountering

Can’t access Cloudflare injected environment variables

What steps have you taken to resolve the issue?

According to the docs, Cloudflare injects the following environment variables by default:
CF_PAGES, CF_PAGES_COMMIT_SHA, CF_PAGES_BRANCH and CF_PAGES_URL

Source: Build configuration · Cloudflare Pages docs

How can we access these variables using Liquid.

Updating for anybody else that stumbles onto this.

You can create a bash script that adds the enviroment variables into your data folder. Then update the build command to run that bash before it runs jekyll build.