Open rhydvik opened 2 years ago
Hi @rhydvik 👋 thanks for raising this issue. This is more related to hosting than the JS library so I will transfer this issue over to the console repo.
Hi :wave:, thanks for opening! While we look into this...
If this issue is related to custom domains, be sure to check the custom domains troubleshooting guide to see if that helps. Also, there is a more general troubleshooting FAQ that may be helpful for other questions.
Lastly, please make sure you've specified the App ID
and Region
in the issue!
Before opening, please confirm:
JavaScript Framework
React
Amplify APIs
Not applicable
Amplify Categories
Not applicable
Environment information
Describe the bug
We have a client-side application when a user accesses our application by typing a URL in browser ex, https://example.com , we take this hostname and get all the configs, colors and other data using the hostname and display it to the user. We wanted to do better SEO so we started doing some Server-side rendering for that we are using
When I try to access https://example.com , we are not able to get this information in the request object. We are getting some s3-bucket/cloudfront endpoint as a host.
Expected behavior
If we look at configuration of Cloudfront that is created by AWS amplify, it creates a lambda edge and connect it with Origin Request. And according to docs of Lambda edge the request body does have host information.
Origin Request lambda event
This information is getting lost somewhere
Reproduction steps
Code Snippet
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response