Dynamic library URL in .spec
Posted: Fri Nov 26, 2021 4:07 am
We have created a component that requires a different URL in the spec file library array depending on being run in our development environment or our production environment. Is there a way of having a dynamic URL specified?
- Code: Select all
{
"name": "cesoftcomponents-api-example",
"displayName": "api-example",
"version": 1,
"definition": "cesoftcomponents/api-example/api-example.js",
"libraries": [
{
"name": "api-check",
"version": "1",
"mimetype": "text/javascript",
"url": "https://test.api.io/js/api-check". <-- Needs to remove the test when run in Production
},