Skip to content

Commit

Permalink
change AWS env var names to avoid conflicting with EFP RecordRTC names
Browse files Browse the repository at this point in the history
  • Loading branch information
becky-gilbert committed Oct 5, 2024
1 parent 7f07fff commit 61fa1e9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions packages/data/src/environment.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
declare global {
namespace NodeJS {
interface ProcessEnv {
S3_REGION: string;
S3_ACCESS_KEY_ID: string;
S3_SECRET_ACCESS_KEY: string;
S3_BUCKET: string;
JSPSYCH_S3_REGION: string;
JSPSYCH_S3_ACCESS_KEY_ID: string;
JSPSYCH_S3_SECRET_ACCESS_KEY: string;
JSPSYCH_S3_BUCKET: string;
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions packages/data/src/lookitS3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class LookitS3 {
private s3: S3Client;
private uploadId: string = "";
private key: string;
private bucket: string = process.env.S3_BUCKET;
private bucket: string = process.env.JSPSYCH_S3_BUCKET;
private complete: boolean = false;

public static readonly minUploadSize: number = 5 * 1024 * 1024;
Expand All @@ -30,10 +30,10 @@ class LookitS3 {
this.key = key;
try {
this.s3 = new S3Client({
region: process.env.S3_REGION,
region: process.env.JSPSYCH_S3_REGION,
credentials: {
accessKeyId: process.env.S3_ACCESS_KEY_ID,
secretAccessKey: process.env.S3_SECRET_ACCESS_KEY,
accessKeyId: process.env.JSPSYCH_S3_ACCESS_KEY_ID,
secretAccessKey: process.env.JSPSYCH_S3_SECRET_ACCESS_KEY,
},
});
} catch (e) {
Expand Down

0 comments on commit 61fa1e9

Please sign in to comment.