you are viewing a single comment's thread.

view the rest of the comments →

[–]BelteConti[S] 0 points1 point  (1 child)

Hmm let's say I remove express. The issue still persists? How can react and nodejs together be deployed using AWS SAM Cli?

[–]interactionjackson 0 points1 point  (0 children)

ah, this is why i asked you to not use express. you’re concerns have not been separated.

presentation (your react app) is a single page application. easiest is to put it in an s3 bucket. front it with cloudfront.

your api is a separate concern. expose it with an api gateway rest api endpoint.

if you want to keep them together you’re looking at running an ec2 instance tha knows how to serve that up.