Features
FAQ
Pricing
Docs
Blog
Features
FAQ
Pricing
Docs
Blog
Sign up
Sign up
  1. Help Center
  2. Releasing
NOTE: This article has been superseded.
Go to Documentation Home.
NOTE: You're viewing an article about a prerelease feature.
The information here is still being tweaked and may change.
As always, contact support if you have any questions.

Cloudflare Workers

By 
Tom Trinca
Last updated: 
May 7, 2020

Deploying to Cloudflare Workers with Linc

Where can I configure deployments to Cloudflare Workers?

  • When first creating a Site
  • From the Deploy section of your Site's settings

What do I need to configure deployments?

  • Cloudflare Workers Account ID
  • Cloudflare Workers API Token
  • A Deployment Target

To get started, jump over to workers.cloudflare.com and log in. If you don't have an account, you can easily sign up for a free account here.

Account ID

Once you're logged into workers.cloudflare.com, head over to your Dash and copy the Account ID located on the right hand side:

‍


Once you've copied the Account ID, jump over to Linc and paste it into the Account ID section of the Cloudflare Workers deploy config form.


API Token

To get a Cloudflare Workers API Token, head over to your Cloudflare Workers Dash.

From there, click the Get your API token link under CLI and API the section:


From your API Tokens page, click the Create Token button.

Then, from the list of available API Token Templates select the Edit Cloudflare Workers template:


Configuring the Cloudflare Workers template

Once you've selected the Cloudflare Workers template from the API Token Templates list, you'll be navigated to a form where you can edit the selected template. We'll need to make a couple of minor adjustments to this template.

Under the Permissions section, click+ Add More to add a new permission, then set the new permission as follows:

Then, under the Account Resources section, set the fields to: Include - [Your Account]:

Finally, under the Zone Resources section, set the fields to: Include - All Zones from an account - [Your Account]:

With that, your form should now look something like this:

Hit the button Continue to summary then click the Create token button. You can then copy the newly generated API token from the prompt:

With your new API Token in hand, head back to Linc and paste it into the API Token section of the Cloudflare Workers deploy config form.


Linc will automatically validate the API token against Cloudflare when you paste it into the API Token field.

If the token is valid, you can proceed with completing the remainder of the config form.

‍

Configuring a Deployment Target

The final section of the config form allows you to enable deployments to the following targets:

  • Your personal workers.dev subdomain
  • One of your production domains
Deploying to workers.dev

If you're deploying to your workers.dev subdomain, check the Use a 'workers.dev' subdomain checkbox and then type in a preferred subdomain into the subdomain field.

Deploying to a Production Domain

If you want to deploy to one of your production domains, check the Use one of my production domains checkbox, then select a desired production domain from the available list. You can also optionally enter a subdomain.

Once you've completed the Deployment Targets section, your Cloudflare Workers deployment config should be complete!

‍
For help setting up, please get in touch

Related Articles
Release Retries
Retry a failed release.
Release Rollbacks
Rollback instantly to a prior release.
AWS Lambda@Edge
Deploy instantly to AWS's worldwide network
Need additional support?
email us
contact@linc.sh
Twitter
@linc_bot
SLACK
lincbot.slack.com

The Perfect CI/CD Pipeline for your Frontend

Linc
  • Home
  • Pricing
  • Sign In
  • Sign Up
  • Live Demo
Learn More
  • Documentation
  • Blog
Get Help
  • Support
  • Contact
Legal
  • Terms & Conditions
  • Privacy Policy
© Bitgenics Pty Ltd 2019
M/710 Collins Street
Docklands
VIC 3008
AUSTRALIA