Recommended setup for react production app,?

Hi, I’ve been using the latest caddy version with my react application by serving the production build directory directly with caddy. It works great this was, but now I’m trying to get a production setup going and I’m wondering what the recommended setup for serving my frontends would look like?

I’m using docker and I have multiple react applications. My initial thought was to create the react production build and then serve that using nginx inside of my container.

Then, proxy the requests to good nginx frontend server with caddy.

Is there a recommended / better approach?

Thank you!

You can likely just cut out nginx altogether and serve it from Caddy.

You didn’t specify much about your project, so all I could do is assume. Please elaborate.

Fill out the help thread template, it asks questions that help us help you.

This topic was automatically closed after 30 days. New replies are no longer allowed.