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.
You need to enter your Prerender token. There is a variable MY_PRERENDER_TOKEN
at the top of the file, between the single quotes.
To generate using wrangler
wrangler generate myApp https://github.com/bcnzer/cloudflare-worker-template-prerenderio
To deploy using serverless add a serverless.yml
file.