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 个月前251 查看次数
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 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则