cloudflare-apps / create-cloudflare-app

Cloudflare Apps boilerplate featuring Workers and DNS powered by Webpack and Babel
MIT License
168 stars 119 forks source link

Create Abdul #3

Open EngineerAbdul opened 5 years ago

EngineerAbdul commented 5 years ago

{ "$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.

" } } } }