Skip to content

Commit da20241

Browse files
committed
chore: reconstruct src
1 parent 4ef5854 commit da20241

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

example/sample-app/src/App.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ export default {
6161
urlEndpoint: process.env.VUE_APP_URL_ENDPOINT,
6262
publicKey: process.env.VUE_APP_PUBLIC_KEY,
6363
authenticationEndpoint: process.env.VUE_APP_AUTHENTICATION_ENDPOINT,
64-
src: "https://ik.imagekit.io/mindship/default-image.jpg",
65-
path: "/default-image.jpg"
64+
path: "default-image.jpg",
65+
src: `${urlEndpoint}${path}`
6666
};
6767
}
6868
};

tests/stories/0-ImageKitContext.stories.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ export default {
77

88
const urlEndpoint = process.env.VUE_APP_URL_ENDPOINT;
99
const publicKey = process.env.VUE_APP_PUBLIC_KEY;
10-
const src = "https://ik.imagekit.io/mindship/default-image.jpg";
10+
const path = "default-image.jpg";
11+
const src = `${urlEndpoint}${path}`;
1112

1213
export const imageWithContext = () => ({
1314
components: { IKImage, IKContext },

tests/stories/1-ImageKitImage.stories.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ export default {
66

77
const urlEndpoint = process.env.VUE_APP_URL_ENDPOINT;
88
const publicKey = process.env.VUE_APP_PUBLIC_KEY;
9-
const src = "https://ik.imagekit.io/mindship/default-image.jpg";
10-
const path = "/default-image.jpg";
9+
const path = "default-image.jpg";
10+
const src = `${urlEndpoint}${path}`;
1111

1212
export const imageWithSrc = () => ({
1313
components: { IKImage },

tests/stories/2-Transformations.stories.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ export default {
66

77
const urlEndpoint = process.env.VUE_APP_URL_ENDPOINT;
88
const publicKey = process.env.VUE_APP_PUBLIC_KEY;
9-
const src = "https://ik.imagekit.io/mindship/default-image.jpg";
9+
const path = "default-image.jpg";
10+
const src = `${urlEndpoint}${path}`;
1011

1112
export const imageWithTransformation = () => ({
1213
components: { IKImage },

0 commit comments

Comments
 (0)