forked from cloudflare/templates
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: normalize
wrangler.toml
files
- Loading branch information
Showing
21 changed files
with
139 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
name = "cobol-worker" | ||
type = "webpack" | ||
webpack_config = "webpack.config.js" | ||
|
||
account_id = "" | ||
name = "<< todo >>" | ||
|
||
account_id = "<< todo >>" | ||
zone_id = "<< todo >>" | ||
workers_dev = true | ||
route = "" | ||
zone_id = "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,18 @@ | ||
name = "worker" | ||
# type = "javascript" is required to use the `[build]` section | ||
type = "javascript" | ||
name = "<< todo >>" | ||
|
||
account_id = "<< todo >>" | ||
zone_id = "<< todo >>" | ||
workers_dev = true | ||
account_id = "" | ||
route = "" | ||
zone_id = "" | ||
|
||
[build.upload] | ||
# Upload the code directly from the src directory. | ||
dir = "src" | ||
# The "modules" upload format is required for all projects that export a Durable Objects class | ||
format = "modules" | ||
main = "./index.mjs" | ||
dir = "src" | ||
|
||
[durable_objects] | ||
bindings = [{name = "COUNTER", class_name = "Counter"}] | ||
|
||
[[migrations]] | ||
tag = "v1" # Should be unique for each entry | ||
new_classes = ["Counter"] | ||
new_classes = ["Counter"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
name = "emscripten-template" | ||
type = "webpack" | ||
zone_id = "" | ||
account_id = "" | ||
route = "" | ||
workers_dev = true | ||
webpack_config = "webpack.config.js" | ||
|
||
name = "<< todo >>" | ||
|
||
account_id = "<< todo >>" | ||
zone_id = "<< todo >>" | ||
workers_dev = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
name = "router" | ||
type = "webpack" | ||
name = "<< todo >>" | ||
|
||
account_id = "" | ||
account_id = "<< todo >>" | ||
zone_id = "<< todo >>" | ||
workers_dev = true | ||
route = "" | ||
zone_id = "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
account_id = "" | ||
name = "my-site" | ||
type = "webpack" | ||
name = "<< todo >>" | ||
|
||
account_id = "<< todo >>" | ||
zone_id = "<< todo >>" | ||
workers_dev = true | ||
site = { bucket = "./public" } | ||
|
||
[site] | ||
bucket = "./public" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
type = "webpack" | ||
zone_id = "" | ||
account_id = "" | ||
route = "" | ||
name = "<< todo >>" | ||
|
||
account_id = "<< todo >>" | ||
zone_id = "<< todo >>" | ||
workers_dev = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
name = "worker-typescript-template" | ||
type = "javascript" | ||
zone_id = "" | ||
account_id = "" | ||
route = "" | ||
name = "<< todo >>" | ||
|
||
account_id = "<< todo >>" | ||
zone_id = "<< todo >>" | ||
workers_dev = true | ||
|
||
[build] | ||
command = "npm install && npm run build" | ||
command = "npm run build" | ||
|
||
[build.upload] | ||
format = "service-worker" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name = "websocket-template" | ||
type = "webpack" | ||
account_id = "b54f07a6c269ecca2fa60f1ae4920c99" | ||
name = "<< todo >>" | ||
|
||
account_id = "<< todo >>" | ||
zone_id = "<< todo >>" | ||
workers_dev = true | ||
route = "" | ||
zone_id = "" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
{ | ||
"private": true, | ||
"version": "0.0.0", | ||
"main": "index.js" | ||
"version": "0.0.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/** | ||
* @type {ExportedHandler} | ||
*/ | ||
const worker = { | ||
fetch(request) { | ||
return new Response('Hello worker!', { | ||
headers: { | ||
'content-type': 'text/plain' | ||
} | ||
}); | ||
} | ||
}; | ||
|
||
export default worker; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
name = "helloworld" | ||
type = "javascript" | ||
name = "<< todo >>" | ||
|
||
account_id = "" | ||
account_id = "<< todo >>" | ||
zone_id = "<< todo >>" | ||
workers_dev = true | ||
route = "" | ||
zone_id = "" | ||
|
||
[build.upload] | ||
format = "modules" | ||
main = "./index.mjs" | ||
dir = "src" |