Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
{
"$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": {
"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": "
Welcome to Cloudflare Apps!
Download this app every time you want to make a new project.
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.
"}
}
}
}