Custom domain reverse proxy with AWS CloudFront

Hi,

I’m attempting to set up a custom domain with AWS CloudFront as the reverse proxy, while using sub-folders.

It all seems to work pretty well initially, but as soon as you change page, you get the following error:

An abnormal error occurred, please try ‘Reload’ or ‘get Support’ to help you solve it!
Unable to decode turbo-stream response from URL: https://ref.lootlocker.com/game/api-5291494.data

A reload causes a 404 from CloudFront. Do I have something misconfigured since I’m seeing this behavior?

The documentation is found on Game API - Game API

And of course as soon as I’d posted this I realised it was an issue with the CloudFront configuration. Make sure you have the Behavior set to /sub-folder* and not just /sub-folder.

It seems the documentation is configured correctly. I tried accessing and navigating without issues. Feel free to reach out if you have any other questions.