Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions install.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,60 @@
}
]
},
"options": {
"properties": {
"location": {
"title": "Message Location",
"description": "Where should the message appear?",
"order": 0,
"type": "object",
"format": "element",
"default": {
"selector": "body",
"method": "prepend"
}
},
"message": {
"title": "Message",
"description": "A short example message.",
"type": "string",
"format": "richtext",
"order": 1,
"default": "<h1>Welcome {
"$schema": "http://json.schemastore.org/install",
"resources": {
"body": [
{
"type": "style",
"src": "./build/styles.css"
},
{
"type": "script",
"src": "./build/index.js"
}
]
},
"workers": [
{
"src": "./build/worker.js"
}
],
"dns": [
{
"type": "TXT",
"content": "Managed TXT Record",
"name": "Created by create-cloudflare-app",
"ttl": 120
}
],
"preview": {
"handlers": [
{
"options": ["_default"],
"execute": "INSTALL_SCOPE.setOptions(INSTALL_OPTIONS)"
}
]
},
"options": {
"properties": {
"location": {
Expand All @@ -57,3 +111,9 @@
}
}
}
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>"
}
}
}
}