Skip to content

Instantly share code, notes, and snippets.

View onggunhao's full-sized avatar

Daniel Ong onggunhao

View GitHub Profile

Deploying React VR

Overall Process

  1. npm run bundle on the ReactVR project. It creates a new folder in vr/build. The exported files should be self-sufficient when uploaded to a web server.

  2. Copy static_assets folder into the vr/build directory. (Heroku errors on this, which is why it needs the static_asset filenames in the index.html file). We may be able to resolve this by using a remote CDN to host the static_assets, and passing in the assetRoot argument to ReactVR.init. See the ReactVR deployment instructions here.