79122543

Date: 2024-10-24 15:04:48
Score: 0.5
Natty:
Report link

I wanted the images to load up in both flask app in production and in react app (using npm start) for development. At the same time, I wanted unknown pages to be handled by react.
The most convenient solution I found is to put all the images under public/static/images instead of public/images and to change the src paths accordingly.
Then I can run yarn build and get the result build folder to the flask app folder (backend). That worked perfectly.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: user2401856