I have a React application that I need to deploy, and I am considering two options for serving the production build:
1. Serving the React build directly with Django (e.g., using WhiteNoise or serving it as static files).
2. Using a Node.js server (such as Express) to serve the React build separately.
I am having a websocket server in django channels using asgi. But I have build a react app in using the react. As the SSR is better in performance I was wondering if whether I can serve my react build with django or not.
Which approach is generally recommended, and what are the pros and cons of each?