Skip to content

Commit 068e487

Browse files
tofikwestclaude
andcommitted
fix(api): use relative path for dynamic import of S3 presigner
Dynamic import() doesn't resolve @/ path aliases in nest build, causing the Docker/CodeBuild API build to fail with TS2307. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 46ef399 commit 068e487

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)