Id like to run HMR in production, using it for seamless application updates. I cannot seem to find any docs or tutorials regarding how to do this.
My setup is currently "serverless", and statics are served from AWS S3. My first thought is i would create an "Update" server of some sort, wherby the HMR clients would poll for updates, and the magic would work.
My questions:
- a) How do I run this in production (optimally)
- b) For this to work the "Update" server will have to know of module changes, how?
- I know the json file with the updates is what HMR relies on to know of the changes, will i have to push some sort of this file to the server?
- Or, Do I have the server watch S3 files somehow, and recompile, in turn triggering updates.
A complete solution would be awesome, but also just some sudo logic as to how this could work would be great.