This project contains the worker code that can be deployed to fastly@edge.
You can read more documentation on redirection.io website
To build this project, you'll need Rust and cargo. You will also need fastly toolchain in version 2+.
Copy fastly.dist.toml
to fastly.toml
and adapt it according to your need.
Note: You only need to adapt the URL to make it works locally. If you only publish the worker, you can keep the file as it.
- Copy
redirectionio.dist.json
toredirectionio.json
and adapt it according to your need. - Start the web server :
fastly compute serve
Warning: you must configure the fastly worker with all required parameters before deploying the worker.
fastly compute publish --service-id=XXXXX
You can check the logs:
fastly log-tail --service-id=XXXXX