File tree Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -189,6 +189,13 @@ Your Cloudimage customer token.
189
189
Cloudimage account to get one. The subscription takes less than a
190
190
minute and is totally free.
191
191
192
+ ### customDomain
193
+
194
+ ###### Type: ** String** | Default: ** "cloudimage.io"** | _ optional_
195
+
196
+ If you use a custom CNAME for your cloudimage integration, you can set it here.
197
+ Note: this will disregard your token above as this should be built into the CNAME entry.
198
+
192
199
### baseURL
193
200
194
201
###### Type: ** String** | Default: ** "/"** | _ optional_
Original file line number Diff line number Diff line change @@ -852,6 +852,14 @@ const cloudimageConfig = {
852
852
baseURL: 'https://jolipage.airstore.io/'
853
853
};
854
854
855
+
856
+ const cloudimageConfigWithCustomCNAMEDomain = {
857
+ token: 'demo',
858
+ baseURL: 'https://jolipage.airstore.io/',
859
+ customDomain: 'images.airstore.io'
860
+ };
861
+
862
+
855
863
<template>
856
864
<CloudimageProvider v-bind:cloudImageConfig="cloudimageConfig">
857
865
<h1>Simple demo of vue-cloudimage-responsive</h1>
Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ export default {
14
14
return {
15
15
config: {
16
16
token: this .cloudImageConfig .token || " " ,
17
- domain: " cloudimg.io" ,
17
+ domain: this .cloudImageConfig .customDomain || ' cloudimg.io' ,
18
+ customDomain: (this .cloudImageConfig .customDomain ) || false ,
18
19
lazyLoading: this .cloudImageConfig .lazyLoading || true ,
19
20
lazyLoadOffset: this .cloudImageConfig .lazyLoadOffset || 100 ,
20
21
placeholderBackground:
You can’t perform that action at this time.
0 commit comments