I've been struggling with a couple things since I decided to front my blog with AWS Cloudfront:
- Keeping the correct domain
- Search was borked
These have been fixed.
The domain issue was due to not passing the correct headers to the backend servers and those in certain cases would pass the backend URL.
The search needed a new Cloudfront behavior that accepted query strings.