Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 1003 Bytes

File metadata and controls

20 lines (13 loc) · 1003 Bytes

👷 cloudflare-worker-template-prerenderio Prerender.io

A template for kick starting a Cloudflare worker project with Prerender.io

index.js is the content of the Workers script with the Prerender.io support.

Note this template is based on the code from websirnik in this thread.

Configuration

You need to enter your Prerender token. There is a variable MY_PRERENDER_TOKEN at the top of the file, between the single quotes.

Wrangler

To generate using wrangler

wrangler generate myApp https://github.com/bcnzer/cloudflare-worker-template-prerenderio

Serverless

To deploy using serverless add a serverless.yml file.