Skip to content

Commit 5ff7742

Browse files
committed
dev-demo: remove preview-url param from dev-demo upload plugin
1 parent d10a186 commit 5ff7742

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

dev-demo/resources/cars_description_image.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,6 @@ export default {
5353
secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY as string,
5454
}),
5555

56-
// to test s3:
57-
// storageAdapter: new AdminForthAdapterS3Storage({
58-
// bucket: process.env.AWS_BUCKET_NAME as string,
59-
// region: process.env.AWS_REGION as string,
60-
// accessKeyId: process.env.AWS_ACCESS_KEY_ID as string,
61-
// secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY as string,
62-
// }),
63-
64-
6556
allowedFileExtensions: [
6657
"jpg",
6758
"jpeg",

dev-demo/resources/cars_resources/carsResourseTemplate.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,9 +295,6 @@ export default function carsResourseTemplate(resourceId: string, dataSource: str
295295
`${dataSource}/car_images/cars_promo_images_generated/${originalFilename}_${Date.now()}.${originalExtension}`,
296296
preview: {
297297
maxShowWidth: "300px",
298-
previewUrl({ filePath }) {
299-
return `https://tmpbucket-adminforth.s3.eu-central-1.amazonaws.com/${filePath}`;
300-
},
301298
},
302299
generation: {
303300
countToGenerate: 2,

0 commit comments

Comments
 (0)