Configuring C3 Server to bundle in an air-gapped environment
C3 supports UI to be bundled from C3 server in an air-gapped environment. The following steps describe how to bundle in an air-gapped environment.
Getting NPM packages for UI development
- In your application's static console, run the following command:
ImplLanguage.Runtime.forName('js-webpack') - In your application's static console, run the following command:
NpmLibraryManager.mergedRuntime('js-webpack_c3') - The commands above will output an object and both will contain a field called
libraries. There are a list of both open-source and C3-specific libraries which need to be populated in the private NPM registry. For Open source libraries, work with your IT department to make sure they are added to the NPM registry. C3-specific libraries are the libraries that begin with@c3/<name of library>. They will automatically be downloaded for you and seeded into your private registry when you start UI bundling.
Configure your Application Package
- To configure your application to point to your private NPM registry, create two files:
Text
{
"name": "js-webpack_c3",
"repositories": ["https://<username>:<password>@<domain>"]
}