The VM/CN installer is not running the npm i or npm run api commands. Instead, it is taking the dependencies and OpenAPI client from https://jenkins.gluu.org/npm/admin_ui/main/, which are generated during the Jenkins build. I think we can have Jenkins create the admin-ui build and place it at https://jenkins.gluu.org/npm/admin_ui/**. This will remove the responsibility of Flex installers to run the npm run build:prod command and hence will solve the long build time problem.
create env-config.js in the root directory admin-ui project with the following contents.
The VM/CN installer is not running the npm i or npm run api commands. Instead, it is taking the dependencies and OpenAPI client from https://jenkins.gluu.org/npm/admin_ui/main/, which are generated during the Jenkins build. I think we can have Jenkins create the admin-ui build and place it at https://jenkins.gluu.org/npm/admin_ui/**. This will remove the responsibility of Flex installers to run the npm run build:prod command and hence will solve the long build time problem.
<script src="/adminui-config.js" defer></script>
in/admin-ui/app/index.html
.