Skip to content

Commit 5c17a5d

Browse files
committed
also migrate to S3 in test env
1 parent 0360f1e commit 5c17a5d

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

backend/src/db/migrations/20250502230521-migrate-to-s3.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ export const description =
1414
'Upload all image files to a S3 compatible object storage in order to reduce load on our backend.'
1515

1616
export async function up(_next) {
17-
if (CONFIG.NODE_ENV === 'test') {
18-
// Let's skip this migration for simplicity.
19-
// There is nothing to migrate in test environment and setting up the S3 services seems overkill.
20-
return
21-
}
2217
const { AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_ENDPOINT, AWS_BUCKET } = CONFIG
2318
if (!(AWS_ACCESS_KEY_ID && AWS_SECRET_ACCESS_KEY && AWS_ENDPOINT && AWS_BUCKET)) {
2419
throw new Error('No S3 configuration given, cannot upload image files')

0 commit comments

Comments
 (0)