File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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 ;
3030const 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
3636const s3 = bucket
3737 ? new S3Client ( {
@@ -97,7 +97,7 @@ async function saveToBucket(): Promise<void> {
9797
9898const 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 ( ) ;
You can’t perform that action at this time.
0 commit comments