For a conventional static website or framework build, Cloudflare Pages is the simplest place to start: connect a Git repository or upload the built files, deploy, and use the supplied pages.dev address. Choose Workers Static Assets instead when the project needs server-side Worker code, bindings, or a Wrangler-first deployment. This guide walks through both paths, custom domains, and the errors most likely to block a launch.
Choose Pages or Workers
Cloudflare offers two relevant ways to publish a site. Pages is suited to static files and framework output, with Git integration, Direct Upload, and preview deployments. Workers Static Assets serves static files through a Worker project, so it is a better fit when assets belong alongside server-side behavior or Worker bindings.
Cloudflare’s Pages overview says that Workers supports most Pages use cases and offers a broader feature set, describing Workers as its primary platform for building applications; the overview was updated August 25, 2026. That does not make Workers the simplest choice for every static site. Pick based on how you build and operate the site.
| Need | Choose | Why |
|---|---|---|
| Static HTML or framework-generated static output | Pages | Deploy from Git or Direct Upload and get a pages.dev hostname. |
| Pull-request previews and Git-triggered rebuilds | Pages | Pages automatically rebuilds on commits and creates preview deployments for pull requests. |
| Worker code, server-side behavior, or bindings | Workers Static Assets | Static assets can be combined with Worker code and bindings in a Wrangler-managed project. |
| Wrangler-first development and deployment | Workers Static Assets | Develop locally with Wrangler and deploy with its CLI. |
Do not start a new project with Workers Sites: Cloudflare’s documentation says to use Workers Static Assets for full-stack applications instead. Cloudflare marks Workers Sites deprecated in Wrangler v4. For a production site, configure a custom domain or route rather than relying on a workers.dev subdomain; Cloudflare describes workers.dev as intended for personal or hobby projects that are not business-critical.
Do these 3 things before closing this tab:
1Repair Windows errors before they cause bigger problems2Fix the driver behind crashes, sound loss and screen glitches3Clear out junk files and repair common Windows errors#1 Best Overall
- Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
- Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
- Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
- Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
- 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
Prepare your files and build settings
Plain HTML
Make sure the directory you deploy contains a top-level index.html. It is the default entry point for the site root. If your files are in a folder such as public or dist, configure that folder as the output directory rather than deploying the project root by mistake.
Framework-built sites
Identify the build command and the directory that contains the finished static output. For example, Cloudflare’s static HTML guidance allows an optional build command of exit 0 when no build is needed and a custom output directory. For a Next.js static export, Cloudflare’s guide specifies npx next build and out as the build directory. Use the settings that match the actual project; a successful build is not enough if Pages is pointed at the wrong output folder.
Deploy with Cloudflare Pages
- Sign in to the Cloudflare dashboard and open Workers & Pages.
- Select the option to create an application, choose Pages, then select either Git integration or Direct Upload.
- For Git integration, authorize the repository and select the project repository. Set the production branch, build command, and build output directory. For Direct Upload, provide the already-built output directory.
- Deploy the project. Pages provides a unique
*.pages.devhostname where you can check the published site. - For a Git-connected project, push a change to confirm the deployment flow. Pages rebuilds on commits and creates preview deployments for pull requests, allowing you to review changes separately from the production deployment.
Pages is useful when you want a managed Git-to-deployment workflow without first creating a Worker project. Keep the deployment output directory aligned with the folder that contains the final site, not source files that still require a build.
Deploy with Workers Static Assets
Use this route when the site needs Worker code or you want to manage the project through Wrangler. Static assets belong in the project’s configured public directory; the Worker can also use bindings and server-side code.
Free tools Windows power users keep installed
One-click scans. No signup required.
Rank #2
- 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
- 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
- Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
- 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
- What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
- Create a Worker project and configure its static assets directory and any Worker code or bindings the project needs.
- Run
npx wrangler devfrom the project directory to develop and check the application locally. - When ready, run
npx wrangler deploy. - Publish to the project’s
*.workers.devhostname for a personal or hobby project, or configure a custom domain or route for the production endpoint.
Workers’ routing documentation characterizes workers.dev as a Free website intended for personal or hobby projects that are not business-critical. Treat it as a development or non-critical address, not as the default production domain for a business website.
Choose a domain before connecting it
If you do not own a domain yet, decide on its name and register it before starting the custom-domain steps. The setup differs for an apex domain such as example.com and a subdomain such as www.example.com. An apex domain requires the domain to be a Cloudflare zone with its nameservers pointed to Cloudflare; a subdomain can use a CNAME to the Pages hostname.
Connect a custom domain to Pages
- Open the Pages project in Cloudflare and go to Custom domains.
- Add the hostname you want to use and complete the domain association in the Pages dashboard.
- For an apex domain such as
example.com, ensure it is a Cloudflare zone and its nameservers point to Cloudflare. - For a subdomain such as
www.example.com, create a CNAME pointing to<YOUR_SITE>.pages.dev. Associate the custom domain with the Pages project before relying on the DNS record. - Wait for Cloudflare to provision the domain and certificate, then test the exact hostname you added.
Do not treat a DNS record alone as the Pages domain setup. The Pages project must know about the hostname too.
Connect a custom domain or route to a Worker
- Open the Worker in the Cloudflare dashboard.
- Go to Settings > Domains & Routes.
- Add a Custom Domain or configure the appropriate route.
- Follow the dashboard prompts. For a Custom Domain, Cloudflare creates the DNS record and certificate.
A Custom Domain associates a hostname directly with the Worker, while a route is the production endpoint choice when the Worker should handle requests for a configured route. Choose the option that matches how the Worker is meant to receive traffic.
Rank #3
- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
Check the site after deployment
- Open the root URL and a representative page or asset, not just the deployment dashboard.
- For Pages, confirm the deployment output directory contains the site’s top-level
index.htmlif the root path is expected to work. - Test the custom hostname after associating it in the relevant Pages project or Worker settings.
- For Git-connected Pages sites, verify that a new commit triggers a build and that pull requests receive previews if you rely on that workflow.
Troubleshoot common Cloudflare hosting problems
Pages shows a 404 at the root
The deployed output may not contain a top-level index.html. Check the selected build output directory and inspect the built files; configure Pages to publish the directory that actually contains the entry file.
A Pages custom domain returns 522
A CNAME may have been added manually before the hostname was associated with the Pages project. Add the domain under the project’s Custom domains menu first, then use the DNS setup Cloudflare requires.
The domain certificate is not issued
Existing CAA records can restrict which certificate authorities may issue a certificate for the domain. Check the domain’s CAA records and ensure they allow an accepted certificate authority before retrying certificate issuance.
The site works on the provider hostname but not the custom domain
Check that the hostname was added to the correct Pages project or Worker. For an apex Pages domain, verify the zone and nameserver requirements; for a Pages subdomain, verify the CNAME target and project association. For a Worker Custom Domain, use the dashboard’s Settings > Domains & Routes configuration rather than assuming a DNS record alone is sufficient.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Rank #4
- Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
- Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
- Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
- Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
- Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
Wrangler deploys but the assets are missing
Confirm that the files are in the configured public directory and that the Worker project’s static assets configuration points to it. Run npx wrangler dev to check the project locally before deploying again.
You are following an old Workers Sites guide
Workers Sites is deprecated in Wrangler v4. For a new full-stack project, use Workers Static Assets rather than adopting the deprecated approach.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Or skip the browser setup
If you need a clean screenshot of a hosted page to verify how it renders, ScreenshotNeo can return an image or PDF with one GET request. It is a screenshot API and MCP server for developers, not a replacement for hosting your site.
ScreenshotNeo API documentation
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com -o shot.webp
- Cookie banners are accepted and removed, along with known consent platforms, newsletter popups, and chat widgets; each cleanup step can be turned off.
- Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits cost nothing; response headers report the page verdict and whether the shot was billed.
- An MCP server provides screenshot tools for AI clients including Claude and Cursor.
- The Free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000 screenshots.
Sign up for ScreenshotNeo free to get 1,000 screenshots a month with no card.
The Tool Desk
Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Best Value
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
FAQ
Can I host a website on Cloudflare for free?
The reviewed Cloudflare documentation identifies workers.dev as a Free website, but it does not establish pricing for every Pages or Workers configuration. Check Cloudflare’s current plan and product terms for the deployment you intend to use.
Should a Next.js site use Pages or Workers?
If the site is a static export, Pages can publish the generated output; Cloudflare’s static export settings specify npx next build with out as the build directory. If the application needs server-side Worker behavior or bindings, consider Workers Static Assets.
Can I use a domain registered elsewhere?
A Pages subdomain can use a CNAME to the project’s pages.dev hostname after the hostname is associated with the Pages project. An apex Pages domain has the additional requirement that it be a Cloudflare zone with nameservers pointed to Cloudflare.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

