Comments (8)
The urls for delivery and preview API are set in the QueryService class as private readonly
attributs.
What about exposing them in the DeliveryClientConfig class? QueryService is already instantiated with the config object.
from delivery-sdk-js.
Sounds Good for me. Looking forward to an implementation and documentation ;).
from delivery-sdk-js.
See how it's implemented in the .net sdk for reference.
from delivery-sdk-js.
alright, so what do you mean by that? Do you ask me to contribute ? Or will you do/delegate it?
I'm open minded in this case :).
from delivery-sdk-js.
@Journerist sorry for confusion, it was rather a generic remark, not addressed to anyone in particular :)
It would be great if you could take care of it.
So what we did in the .NET SDK is that we introduced a DeliveryOptions
object, adjusted DeliveryClient's constructors. And here's an example of how it can be used: https://github.com/Kentico/delivery-sdk-net/wiki/Using-the-ASP.NET-Core-Configuration-API-and-DI-to-Instantiate-the-DeliveryClient.
I'm not saying we should do it the exactly same thing but the general look&feel should be somewhat similar :)
Please let us know if you're willing to contribute so that we can assign the issue to you.
from delivery-sdk-js.
Hey guys,
This is a good idea. I implemented it so that you can specify base urls when instantiating DeliveryClientConfig
. I published it in 2.1.2
release:
new DeliveryClientConfig('projectId', [], {
baseUrl: 'http://customurl.com',
basePreviewUrl: 'http://custompreview.com'
});
Let me know how that works and if you have any further suggestions.
from delivery-sdk-js.
@Enngage thank you, this is awesome. I'll try it this evening and give you feedback if this works for me.
from delivery-sdk-js.
I already love it, works amazingly. Finally I can get rid of my ugly hack :P. Thanks a lot ! <3
from delivery-sdk-js.
Related Issues (20)
- RichText*Resolver requires to be run in a browser to work HOT 1
- Feat: Add support for strongly typed taxonomy elements HOT 1
- SDK resolves items excluded by depthParameter HOT 1
- urlResolver locale value in return value HOT 2
- `Module not found: Can't resolve 'tslib'` when importing `transformImageUrl` HOT 1
- Client Configuration Parameter to Bypass Archived Items HOT 1
- Incorrect code example in README HOT 1
- Rich text resolver > URL resolver - Incorrect link text passed when formatting is used HOT 3
- Custom asset domain should replace the domain of links in RTE that link to assets HOT 1
- Ensure order of LinkedItems and LinkedItemCodenames matches RichTextElement value order HOT 5
- Add support for limiting Workflows to Collections HOT 1
- Add support for mp4 image transformation HOT 1
- Apply a global filter to deliveryClient HOT 4
- Update SyncAPI SDK
- .toAllPromise() overrides limit parameter HOT 2
- Range filter gives type error when arguments are date strings HOT 1
- Default Language parameter is not overwritten when a language Parameter is applied at the query level HOT 3
- Error: "Invalid language codename" after updating to 14.3.0 HOT 3
- Retrieve a content type element throws error HOT 1
- Exponential rendering time using `createRichTextObjectResolver` HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from delivery-sdk-js.