Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export function createDownloadUrlPlugin(
}

if (isPublic && s3ForDb.publicUrlPrefix) {
return `${s3ForDb.publicUrlPrefix}/${key}`;
return `${s3ForDb.publicUrlPrefix}/${s3ForDb.bucket}/${key}`;
}

return generatePresignedGetUrl(
Expand Down
2 changes: 1 addition & 1 deletion graphql/env/__tests__/__snapshots__/merge.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ exports[`getEnvOptions merges pgpm defaults, graphql defaults, config, env, and
"bucketName": "test-bucket",
"endpoint": "http://localhost:9000",
"provider": "minio",
"publicUrlPrefix": "http://localhost:9000/test-bucket",
"publicUrlPrefix": "http://localhost:9000",
},
"db": {
"connections": {
Expand Down
2 changes: 1 addition & 1 deletion pgpm/env/__tests__/__snapshots__/merge.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ exports[`getEnvOptions merges defaults, config, env, and overrides 1`] = `
"bucketName": "test-bucket",
"endpoint": "http://localhost:9000",
"provider": "minio",
"publicUrlPrefix": "http://localhost:9000/test-bucket",
"publicUrlPrefix": "http://localhost:9000",
},
"db": {
"connections": {
Expand Down
2 changes: 1 addition & 1 deletion pgpm/types/src/pgpm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ export const pgpmDefaults: PgpmOptions = {
awsAccessKey: 'minioadmin',
awsSecretKey: 'minioadmin',
endpoint: 'http://localhost:9000',
publicUrlPrefix: 'http://localhost:9000/test-bucket'
publicUrlPrefix: 'http://localhost:9000'
},
deployment: {
useTx: true,
Expand Down
Loading