Skip to content

Commit 4245891

Browse files
committed
[Refactor]: update environment variable names for AWS S3 configuration
1 parent a69f972 commit 4245891

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/config/store.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ interface ConfigFile {
2626
guilds: Record<string, GuildConfig>;
2727
}
2828

29-
const bucket = process.env.S3_BUCKET;
29+
const bucket = process.env.AWS_S3_BUCKET_NAME;
3030
const key = process.env.CONFIG_KEY || 'config/config.json';
31-
const region = process.env.S3_REGION || 'us-east-1';
32-
const endpoint = process.env.S3_ENDPOINT;
33-
const accessKeyId = process.env.S3_ACCESS_KEY;
34-
const secretAccessKey = process.env.S3_SECRET_KEY;
31+
const region = process.env.AWS_DEFAULT_REGION || 'us-east-1';
32+
const endpoint = process.env.AWS_ENDPOINT_URL;
33+
const accessKeyId = process.env.AWS_ACCESS_KEY_ID;
34+
const secretAccessKey = process.env.AWS_SECRET_ACCESS_KEY;
3535

3636
const s3 = bucket
3737
? new S3Client({
@@ -97,7 +97,7 @@ async function saveToBucket(): Promise<void> {
9797

9898
const configReady = (async () => {
9999
if (!s3 || !bucket) {
100-
console.warn('[config] S3_BUCKET not set; using in-memory config only');
100+
console.warn('[config] AWS_S3_BUCKET_NAME not set; using in-memory config only');
101101
return;
102102
}
103103
const loaded = await loadFromBucket();

0 commit comments

Comments
 (0)