I have deployed a contract to the ropsten test network with Truffle and can interact with the app at http://localhost:8080 (after running npm run dev and with geth connected to ropsten). However, if I wanted to host the app on a normal webserver for example, how should it be done? copying the files from the /build folder (including the /contracts folder in that) and viewing index.html (as is loaded in localhost) gives the following error:
MyContract has not been deployed to detected network (network/artifact mismatch)