File tree Expand file tree Collapse file tree 2 files changed +20
-20
lines changed
Expand file tree Collapse file tree 2 files changed +20
-20
lines changed Original file line number Diff line number Diff line change @@ -26,27 +26,9 @@ Add `cloudinary-build-url` dependency to your project:
2626 </code-block >
2727</code-group >
2828
29- ## Configure
30-
31- You can provide a * global* configuration for Cloudinary builder by using ` setConfig() ` method.
32-
33- ``` js
34- import { setConfig } from ' cloudinary-build-url'
35-
36- setConfig ({
37- cloudName: ' your-cloud-name' ,
38- })
39- ```
40-
41- See [ Options] ( /options ) section for all available options to initialize Cloudinary builder.
42-
43- And that's it 🎉!
44-
45- Now you can start [ building optimized delivery urls] ( /usage/buildUrl ) for your images and videos with Cloudinary.
46-
4729## TypeScript Support
4830
49- ` cloudinary-build-url ` supports TypeScript. To use the same types defined in the library, install ` @cld-apis/types ` .
31+ ` cloudinary-build-url ` supports TypeScript. To use the same types defined in the library, install ` @cld-apis/types ` as your devDependencies .
5032
5133<code-group >
5234 <code-block label =" Yarn " active >
@@ -64,3 +46,21 @@ Now you can start [building optimized delivery urls](/usage/buildUrl) for your i
6446
6547 </code-block >
6648</code-group >
49+
50+ ## Configure
51+
52+ You can provide a * global* configuration for Cloudinary builder by using ` setConfig() ` method.
53+
54+ ``` js
55+ import { setConfig } from ' cloudinary-build-url'
56+
57+ setConfig ({
58+ cloudName: ' your-cloud-name' ,
59+ })
60+ ```
61+
62+ See [ Options] ( /options ) section for all available options to initialize Cloudinary builder.
63+
64+ And that's it 🎉!
65+
66+ Now you can start [ building optimized delivery urls] ( /usage/buildUrl ) for your images and videos with Cloudinary.
Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ const url = buildImageUrl("example", {
236236 cloudName: " demo" ,
237237 },
238238 transformations: {
239- opacity : 30 ,
239+ quality : 10 ,
240240 },
241241});
242242```
You can’t perform that action at this time.
0 commit comments