fix(s3): update public URL to include path query parameter

- Updated `getPublicUrl` to use `?path=<key>` format in public URLs.
- Adjusted corresponding test cases to reflect the new URL structure.
This commit is contained in:
Mathis HERRIOT
2026-01-20 21:27:49 +01:00
parent ded2d3220d
commit 6a2abf115f
2 changed files with 4 additions and 4 deletions

View File

@@ -173,6 +173,6 @@ export class S3Service implements OnModuleInit, IStorageService {
baseUrl = `https://api.${domain}`;
}
return `${baseUrl}/media/${storageKey}`;
return `${baseUrl}/media?path=${storageKey}`;
}
}