Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

fix: #2779 - strip trailing slash on s3 endpoint (#2788)

Nathane0d8152c4c07
diff --git a/web/components/admin/config/server/EditStorage.tsx b/web/components/admin/config/server/EditStorage.tsx
index 4fa415bf45..2923429e21 100644
--- a/web/components/admin/config/server/EditStorage.tsx
+++ b/web/components/admin/config/server/EditStorage.tsx
@@ -126,6 +126,9 @@ export default function EditStorage() {
const handleSave = async () => {
setSubmitStatus(createInputStatus(STATUS_PROCESSING));
const postValue = formDataValues;
+ if (postValue?.servingEndpoint) {
+ postValue.servingEndpoint = postValue?.servingEndpoint?.replace(/\/+$/g, '');
+ }
await postConfigUpdateToAPI({
apiPath: API_S3_INFO,