# Dynamic library URL in .spec

**URL:** <https://forum.servoy.com/t/dynamic-library-url-in-spec/20624>\
**Category:** Questions\
**Created:** [November 26, 2021, 2:07am UTC](https://forum.servoy.com/t/dynamic-library-url-in-spec/20624 "2021-11-26T02:07:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![roddy](https://avatars.discourse-cdn.com/v4/letter/r/a5b964/32.png) [@roddy](https://forum.servoy.com/u/roddy)\
**Post date:** [November 26, 2021, 2:07am UTC](https://forum.servoy.com/t/dynamic-library-url-in-spec/20624/1 "2021-11-26T02:07:43Z")

</div>

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?

```auto
{
	"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
        },

```

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [November 26, 2021, 8:09am UTC](https://forum.servoy.com/t/dynamic-library-url-in-spec/20624/2 "2021-11-26T08:09:28Z")

</div>

no, if you need this you need load that library you self in your component
