How to deploy to Cloudflare Pages Link to heading

I’m practicing multicloud deployments and want to host this blog on Cloudflare Pages.

Create netlify.toml in blog repo on GitLab Link to heading

[build.environment]
DART_SASS_VERSION = "1.105.1"
GO_VERSION = "1.27.2"
HUGO_VERSION = "0.168.0"
NODE_VERSION = "24.21.0"
TZ = "Europe/Oslo"

[build]
publish = "public"
command = """\
  curl -sfLO "https://github.com/sass/dart-sass/releases/download/${DART_SASS_VERSION}/dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz" && \
  tar -C "${HOME}/.local" -xf "dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz" && \
  rm "dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz" && \
  export PATH="${HOME}/.local/dart-sass:${PATH}" && \
  git config --global core.quotepath false && \
  hugo build --gc --minify --baseURL "${URL}"
  """

Configure Cloudflare Pages Link to heading

  1. Create a legacy Pages
  2. Name the project ps4b→blog URL becomes https://ps4bp.pages.dev
  3. Connect to the GitLab repo

References Link to heading