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 Antworten
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
beantwortet vor 3 Monaten
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
EXPERTE
beantwortet vor 3 Monaten
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

beantwortet vor 3 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen