Page 1 of 1

Dynamic library URL in .spec

PostPosted: Fri Nov 26, 2021 4:07 am
by roddy
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
        },

Re: Dynamic library URL in .spec

PostPosted: Fri Nov 26, 2021 10:09 am
by jcompagner
no, if you need this you need load that library you self in your component