I have a react application that I developed in a separate project.
When I am building my Reactjs app i.e. yarn run build I have a script that will take the /build folder and dump it into my phoenix application.
My phoenix application has a ReactController that will server the React application.
My question is, given the below /build folder that I have from my React application, how should I go about serving my static files correct?
So my ReactController will have an action that will load the index.html file below.
The index.html currently is referencing the /static folder like this:
I believe these files should be in my /assets folder.
What is the best way to go about doing something like this, just want to make sure I am not missing anything.