This repository was archived by the owner on Jan 28, 2025. It is now read-only.

Description
Hello,
I'm setting up a Multilang Serverless NextJS project.
Based on the Host Header I like to retrieve the correct language via getServerSideProps.
domain.nl -> dutch, domain.eu -> english, domain.de -> german, ... etc
This is working for the dev server, on page load and on client side routing.
On AWS it's working for page load but failing for client side routing (_next/data/*)
When navigating on the client it's receiving the s3 domain as Host instead of the actual origin.
In Cloudfront I've added Host to the whitelist headers.
Who can help me solve this?