This project contains the worker code that can be deployed to fastly@edge.
You can read more documentation on redirection.io website
Requirements
To build this project, you'll need Rust and cargo. You will also need fastly toolchain in version 2+.
Usage
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.
Use a local fastly server
- Copy
redirectionio.dist.jsontoredirectionio.jsonand adapt it according to your need. - Start the web server :
Deploy it to fastly
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