XStatic.CloudflarePages 1.0.0-alpha

This is a prerelease version of XStatic.CloudflarePages.
dotnet add package XStatic.CloudflarePages --version 1.0.0-alpha
                    
NuGet\Install-Package XStatic.CloudflarePages -Version 1.0.0-alpha
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="XStatic.CloudflarePages" Version="1.0.0-alpha" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="XStatic.CloudflarePages" Version="1.0.0-alpha" />
                    
Directory.Packages.props
<PackageReference Include="XStatic.CloudflarePages" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add XStatic.CloudflarePages --version 1.0.0-alpha
                    
#r "nuget: XStatic.CloudflarePages, 1.0.0-alpha"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package XStatic.CloudflarePages@1.0.0-alpha
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=XStatic.CloudflarePages&version=1.0.0-alpha&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=XStatic.CloudflarePages&version=1.0.0-alpha&prerelease
                    
Install as a Cake Tool

xStatic Cloudflare Pages Deployer

NuGet

A Cloudflare Pages deployer extension for xStatic for Umbraco.

Installation

Install the NuGet package:

dotnet add package XStatic.CloudflarePages

Configuration

Prerequisites

  1. Node.js: Must be installed on the server running your Umbraco instance
  2. Cloudflare Account: You need a Cloudflare account with Pages enabled
  3. API Token: Create an API token at Cloudflare API Tokens with "Cloudflare Pages Edit" permission
  4. Cloudflare Pages Project: The project must already exist in your Cloudflare Pages dashboard

Setup in xStatic

  1. In Umbraco, navigate to xStatic in the backoffice
  2. Create or edit a site configuration
  3. Select "Cloudflare Pages" as the deployer
  4. Enter your configuration:
    • API Token: Your Cloudflare API token
    • Account ID: Found in your Cloudflare dashboard URL (e.g., dash.cloudflare.com/{account-id}/pages)
    • Project Name: The name of your Cloudflare Pages project

Usage

Manual Registration

If you need to manually register the deployer:

using XStatic.CloudflarePages;

public void ConfigureServices(IServiceCollection services)
{
    services.AddXStatic()
        .AddCloudflarePagesDeployer();
}

Auto Registration

The deployer will be automatically registered if you have auto-installers enabled in xStatic.

Features

  • Deploys static sites to Cloudflare Pages using the Wrangler CLI
  • Automatically includes Cloudflare-specific files from wwwroot:
    • _redirects
    • _headers
    • _routes.json
    • functions/ folder (for Cloudflare Functions)

Requirements

  • Umbraco 17+
  • xStatic.Core 17+
  • Node.js (for Wrangler CLI)

License

MIT License - see LICENSE for details.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0-alpha 74 10/28/2026