Skip to content

Commit 4e7dd4e

Browse files
author
Michael Pinter
committed
Removed Workers as feature is in beta and closed to new applicants
1 parent 7d7c181 commit 4e7dd4e

5 files changed

Lines changed: 3 additions & 59 deletions

File tree

README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ Download this app and replace our code any time you want to build an Cloudflare
1515

1616
Your Cloudflare App can configure the [DNS Records](https://api.cloudflare.com/#dns-records-for-a-zone-properties) of any domain on Cloudflare.
1717

18-
#### Cloudflare Workers
19-
20-
Your Cloudflare App can include a single [Cloudflare Worker](https://developers.cloudflare.com/workers/) that runs each time your app is loaded.
21-
2218
## Setup
2319

2420
Fork and clone the repo or download the [latest release](https://github.com/CloudflareApps/CreateCloudflareApp/releases/latest).
@@ -60,10 +56,6 @@ This is where the magic happens. Your app starts here.
6056

6157
Write your app styles here.
6258

63-
#### `workers/worker.js`
64-
65-
Use this file to add a [Cloudflare Worker](https://developers.cloudflare.com/workers/) to your app. Each app may contain one worker. If you don't want to use workers, just delete this file along with the workers configuration in `install.json`.
66-
6759
#### `media/**`
6860

6961
Put your icons, tile images, and screenshots to be used in your Cloudflare Apps page here.

install.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@
1212
}
1313
]
1414
},
15-
"workers": [
16-
{
17-
"src": "./build/worker.js"
18-
}
19-
],
2015
"dns": [
2116
{
2217
"type": "TXT",
@@ -52,7 +47,7 @@
5247
"type": "string",
5348
"format": "richtext",
5449
"order": 1,
55-
"default": "<h1>Welcome to Cloudflare Apps!</h1><p>Download this app every time you want to make a new project.</p><p>This app renders a message to the user's website, installs a Cloudflare Worker that adds a 'Hello-Workers' header to each request, and sets a TXT DNS record with a value of 'Hello DNS'. The first Cloudflare Workers script in install.json will run on every request to the user's website. Currently, one Worker is allowed per app, but you may set an unlimited number of DNS records.</p>"
50+
"default": "<h1>Welcome to Cloudflare Apps!</h1><p>Download this app every time you want to make a new project.</p><p>This app renders a message to the user's website and sets a TXT DNS record with a value of 'Hello DNS'."
5651
}
5752
}
5853
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "@cloudflare-apps/create-cloudflare-app",
33
"version": "1.0.0",
4-
"description": "Cloudflare Apps boilerplate featuring Workers and DNS powered by Webpack and Babel",
4+
"description": "Cloudflare Apps boilerplate featuring DNS powered by Webpack and Babel",
55
"scripts": {
66
"start": "npm-run-all dev:setup dev:webpack",
77
"dev:webpack": "webpack --watch --colors",
88
"dev:setup": "npm-run-all lint",
99
"build": "npm-run-all lint build:webpack",
1010
"build:webpack": "NODE_ENV=production webpack --colors",
11-
"lint": "node_modules/.bin/eslint --fix --ext .js src workers"
11+
"lint": "node_modules/.bin/eslint --fix --ext .js src"
1212
},
1313
"repository": {
1414
"type": "git",

webpack.config.js

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ module.exports = {
88
devtool: "hidden-source-map",
99
entry: {
1010
index: "./src/index.js",
11-
worker: "./workers/worker.js",
1211
},
1312
output: {
1413
filename: "[name].js",
@@ -40,26 +39,6 @@ module.exports = {
4039
],
4140
},
4241
},
43-
44-
{
45-
test: /workers\/.*\.js$/,
46-
loader: "babel-loader",
47-
exclude: /(node_modules)/,
48-
options: {
49-
compact: false,
50-
presets: [
51-
[
52-
"env",
53-
{
54-
targets: {
55-
node: "current",
56-
},
57-
},
58-
],
59-
],
60-
},
61-
},
62-
6342
{
6443
test: /\.css$/,
6544
use: [

workers/worker.js

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)