To run prerendercloud-server from https://fly.io/
You need:
- an authenticated fly.io account (sign up on fly.io and install the flyctl tool, https://fly.io/docs/getting-started/installing-flyctl/)
- a Dockerfile
- fly.toml (typically auto-generated by your authenticated flyctl CLI, if you use the one included here you must modify the
app
field) - build directory with index.html and JS/CSS files
Then apply your configuration preferences:
- specify any options, e.g.
--enable-middleware-cache
,--ignore-all-query-params
, etc. inDockerfile
- optionally remove or edit
_redirects
and_whitelist.js
- if using the fly.toml file here, modify the
app
andPRERENDER_TOKEN
fields
Then build the Docker container and deploy to Fly.io:
bash ./deploy-to-fly.sh