Skip to content

Commit 409aabb

Browse files
ANKUR DWIVEDIANKUR DWIVEDI
authored andcommitted
update readme.md
1 parent 241b3f5 commit 409aabb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ In order to use the SDK, you need to provide it with a few configuration paramet
236236

237237
```js
238238
<IKContext
239-
:publicKey="your_url_endpoint"
240-
:urlEndpoint="your_public_api_key"
239+
:publicKey="your_public_api_key"
240+
:urlEndpoint="your_url_endpoint"
241241
:authenticator={()=>Promise}
242242
// This promise resolves with an object containing the necessary security parameters i.e `signature`, `token`, and `expire`.
243243
>
@@ -331,6 +331,7 @@ For example:
331331
```js
332332
<IKImage
333333
path="/default-image.jpg"
334+
urlEndpoint="https://ik.imagekit.io/your_imagekit_id/endpoint/"
334335
:transformation="[{ "width": 400, "height": 300, "raw": "l-text,i-Imagekit,fs-50,l-end" }]"
335336
/>
336337
```
@@ -348,6 +349,7 @@ For example:
348349
```js
349350
<IKImage
350351
path="/default-image.jpg"
352+
urlEndpoint="https://ik.imagekit.io/your_imagekit_id/endpoint/"
351353
:transformation="[{ "width": 400, "height": 300, "raw": "l-image,i-default-image.jpg,w-100,b-10_CDDC39,l-end" }]"
352354
/>
353355
```
@@ -365,6 +367,7 @@ For example:
365367
```js
366368
<IKVideo
367369
path="/img/sample-video.mp4"
370+
urlEndpoint="https://ik.imagekit.io/your_imagekit_id/endpoint/"
368371
:transformation="[{ "width": 400, "height": 300, "raw": "l-image,i-ik_canvas,bg-FF0000,w-300,h-100,l-end" }]"
369372
/>
370373
```

0 commit comments

Comments
 (0)