Skip to content

A modern, self-hosted backup solution for secure, encrypted backups across local and cloud storage.

fix: resolves broken Wasabi integration due to invalid region endpoint

towfiqi317f3b8ec58d
diff --git a/backend/src/utils/providers.ts b/backend/src/utils/providers.ts
index 574202a..e136a64 100644
--- a/backend/src/utils/providers.ts
+++ b/backend/src/utils/providers.ts
@@ -1337,7 +1337,7 @@ export const providers: Record<string, ProviderConfig> = {
'secret_access_key',
creds.secret_access_key,
'endpoint',
- `s3.${creds.region === 'us-east-1' ? '' : '.' + creds.region}wasabisys.com`,
+ `s3.${creds.region && creds.region !== 'us-east-1' ? creds.region + '.' : ''}wasabisys.com`,
'region',
creds.region,
],