Where to deploy my reactjs application?

0

Hi, I'm a bit new to AWS. I have deployed small ReactJS applications on S3. But I feel a little confused when researching other services to deploy my React application and seeing what they do for similar things. For example: S3, Amplify, App Runner, etc. So my question is, what is the best way to deploy a small app in react with custom domain? And I would like to know the same for an app in nextjs. Thanks

已提問 3 個月前檢視次數 250 次
3 個答案
1

In my case I recommend you using Amplify.

**Here is why using Amplify: **

  • It automatically creates CI/CD pipeline that can detect changes in your source repository, then deploy newer version based on your code.

  • You can also easily create custom domain with Amplify.

  • Simple steps to follow

  • Build in authentication component (work with Cognito)

profile picture
已回答 3 個月前
0

Hello.

For small applications, I think CloudFront + S3 is fine.
https://docs.aws.amazon.com/prescriptive-guidance/latest/patterns/deploy-a-react-based-single-page-application-to-amazon-s3-and-cloudfront.html

I think Amplify is useful when creating a web service that performs authentication using Cognito, etc., because it allows easy integration.
https://docs.aws.amazon.com/amplify/latest/userguide/welcome.html

I think you may consider using App Runner if you are managing web applications in containers.
https://docs.aws.amazon.com/apprunner/latest/dg/what-is-apprunner.html

profile picture
專家
已回答 3 個月前
0

Hello, As already mentioned in above answers that S3+Cloudfront for small application is fine.

For you code base for React and Nextjs or any other language , using codecommit is a seamless option.

To use custom domain, it works well with Public Hosted Zone and it uses it own custom certificate under the hood. https://docs.aws.amazon.com/amplify/latest/userguide/custom-domains.html

已回答 3 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南