mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 13:20:17 +00:00
update r2endpoint to use ACCOUNT_ID env variable
This commit is contained in:
@@ -34,7 +34,7 @@ export abstract class DefaultServerConfig implements ServerConfig {
|
||||
return process.env.GIT_COMMIT;
|
||||
}
|
||||
r2Endpoint(): string {
|
||||
return process.env.R2_ENDPOINT;
|
||||
return `https://${process.env.R2_ACCOUNT_ID}.r2.cloudflarestorage.com`;
|
||||
}
|
||||
r2AccessKey(): string {
|
||||
return process.env.R2_ACCESS_KEY;
|
||||
|
||||
Reference in New Issue
Block a user