Search code examples
reactjsamazon-s3server-side-rendering

About React 18 SSR (on Amazon S3)


This question is related to SSR in React 18.
I am deploying a React Application through a static file hosting system called Amazon S3.
However, after hearing about the SSR feature of React 18, I had a question.
Since S3 is not a real server, it does not function as a server. (it's just response files). But speaking of SSR, the server must render HTML per request. In this case, will I no longer be able to do static hosting in s3?


Solution

  • You can use AWS Lambda to deploy it. here you can find some more information about how to it wroks:

    https://sbstjn.com/blog/serverless-create-react-app-server-side-rendering-ssr-lambda/

    https://aws.amazon.com/blogs/compute/building-server-side-rendering-for-react-in-aws-lambda/