đź‘· 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.