Deployment
Deploying your library using VertiGIS Studio Web Designer
The easiest way to deploy your custom library built using the SDK is to upload it to an application using the VertiGIS Studio Web Designer.
Uploading Custom Code to an App
note
You can only upload a library to a saved app.
- Run
npm run buildin the root of your project to create a production build of your library- This creates an optimized production build that is output to the
buildfolder of your project. This build is designed for use in production
- This creates an optimized production build that is output to the
- Open an application in VertiGIS Studio Web Designer that you wish to upload your custom code into
- Navigate to File -> Upload Library
- Follow the instructions to upload your custom library located in the
buildfolder of your project
Upload app config and layout to an App (optional):
- Create a
.ziparchive of yourapp.jsonandlayout.xmlfiles from theappfolder of your project - Navigate to File -> Upload App
- Follow the instructions to upload the
.ziparchive
Your app is now ready to use your library. If your library registers any custom components, they will be available in the Layout Toolbox
Deploy the app
After you've uploaded your custom library to your application, you can push the application through the configured deployment stages using the deployment pipeline in the Designer. Your library code will be copied through the deployment stages, so you can be confident that changes to your library code in the development stage won't affect your production app until you explicitly deploy to the production stage.