Skip to content

Commit 5efbe13

Browse files
authored
Merge pull request #2523 from trycompai/fix/api-dynamic-import-s3-presigner
fix(api): use relative path for dynamic import of S3 presigner
2 parents 46ef399 + 068e487 commit 5efbe13

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/api/src/policies/policies.controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ export class PoliciesController {
316316

317317
// Generate signed URL
318318
const { S3Client, GetObjectCommand } = await import('@aws-sdk/client-s3');
319-
const { getSignedUrl } = await import('@/app/s3');
319+
const { getSignedUrl } = await import('../app/s3');
320320
const bucketName = process.env.APP_AWS_BUCKET_NAME;
321321

322322
if (!bucketName) {
@@ -480,7 +480,7 @@ export class PoliciesController {
480480
if (!pdfUrl) return { url: null };
481481

482482
const { S3Client, GetObjectCommand } = await import('@aws-sdk/client-s3');
483-
const { getSignedUrl } = await import('@/app/s3');
483+
const { getSignedUrl } = await import('../app/s3');
484484
const bucketName = process.env.APP_AWS_BUCKET_NAME;
485485
if (!bucketName) return { url: null };
486486

0 commit comments

Comments
 (0)