Skip to content
How to export a web-app and bundle all assets
- set cloudBaseUrl:
'/' in the cloudClient init function
- Set homepage property in package.json. This is the folder where the web-app build will be uploaded, eg for the view app it will be
npm run build
npm run sync
projectId is the mongoDB id of the synced project. This will create a
cloud/ folder in the previously generated
build/ directory, containing all assets as well as a
docs.json file with all the cloud docs and type definitions
- Build xx-packages (make sure you first comment out any unused imports in
src/index.js ), then copy that build folder to the build folder generated in 3.
- update path to
build/index.html to reference the files copied in 5.