Hugo Edge Rules for AWS CloudFront.
Hedgerules makes hugo deploy work seamlessly with CloudFront and S3.
It generates the CloudFront Functions and Key Value Store entries needed to handle
redirects, directory indices, and custom headers — features you get for free
with Netlify, but have to build yourself on AWS.
Features#
- Directory index redirects —
/pathredirects to/path/ - Index file rewriting —
/path/serves/path/index.htmlfrom S3 - Hugo alias redirects — redirects from Hugo’s
aliasesfrontmatter - Custom redirects — user-defined
_hedge_redirects.txtfile - Custom response headers — global defaults and per-page overrides via
_hedge_headers.json