Closed larswww closed 4 years ago
For anyone else looking to solve this!
The only real quirk is that you have to set the default root object of your CloudFront distribution to /
- otherwise it'll keep on redirecting directly to the generated API url, not your domain. In a spa you would set that default object to be index.html.
Domain/cloudfront distribution setup steps if anyone else was wondering;
I did not use the internal API in the project and instead directed cloudfront to proxy mydomain.com/api to a separately deployed API Gateway api.
Thanks again Tony this helped me out
Hi Tony!
Thank you for making this template. It's exactly what I was looking for :)
When you say "use your own domain", how would you configure that? I presume it means also needing a cloudfront distrubtion, forwarding certain paths to S3, and some to the API Gateway origin?
And I take it the S3 is to store anything static, which is then served via express/nuxt?
Thanks again