Speed, meet simplicity.
Build blazing fast websites by seamlessly deploying static assets alongside your APIs and application code.
The signup process will guide you through choosing a workers.dev subdomain, selecting the Workers Bundled plan, and veryifying your email address.
From any directory, use NPM to install Wrangler globally:
~/ $ npm install -g @cloudflare/wrangler
To configure Wrangler, you need a Workers API Token from your Profile.
Click "Create Token" and use the "Edit Cloudflare Workers" template. For more information, see "Managing API Tokens and Keys" in our documentation.
Now run the config command to interactively enter your new API Token:
~/ $ wrangler config
Enter API Token:
yourNewTokenCreatedAbove
To create a new site, just generate it with the --site
flag:
~/ $ wrangler generate --site my-site
That will create a directory called my-site
with all of the initial files necessary to create a basic site. Enter into that directory:
~/ $ cd my-site
From that directory, you can deploy the site to your workers.dev subdomain using one simple command:
~/my-site $ wrangler publish
Published https://my-site.<subdomain>.workers.dev
If you’d like more info on deploying an existing static site, follow our general quick start. Or you can watch this tutorial in which we create & deploy a site from create‑react‑app in under 3 minutes:
Learn how to extend a static site using serverless functions by visiting the docs and template gallery.
Your site. Our network.
Distributed to the world.
Static assets. Dynamic sites.
Assets. APIs. All-in-one.
Workers... Bundled.
Workers Sites requires the Workers Bundled plan—starting at $5 per month. Workers Bundled includes 10 million requests, 1 GB of Workers KV storage, and 1 million KV reads and writes each month with pay as you go pricing for additional usage.
Workers Bundled plan(Includes Workers Sites)
- Deploy up to 30 sites
- Runs on all 200 data centers
- Free workers.dev subdomain
- Up to 50ms CPU time per request
- Always lowest latency
- Access to Workers KV edge storage