From 73245e875dd674e7fb3ad8b9714f2f9252aeffd5 Mon Sep 17 00:00:00 2001 From: Valere Date: Tue, 10 Feb 2026 15:11:43 +0100 Subject: [PATCH] fix: Netlify preview broken --- .github/workflows/deploy-to-netlify.yaml | 2 ++ config/config_netlify_preview_sdk.json | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 config/config_netlify_preview_sdk.json diff --git a/.github/workflows/deploy-to-netlify.yaml b/.github/workflows/deploy-to-netlify.yaml index 4b7ba22f..3f964ad4 100644 --- a/.github/workflows/deploy-to-netlify.yaml +++ b/.github/workflows/deploy-to-netlify.yaml @@ -64,6 +64,8 @@ jobs: - name: Add config file run: | if [ "${{ inputs.package }}" = "full" ]; then + curl -s "https://raw.githubusercontent.com/${{ inputs.pr_head_full_name }}/${{ inputs.pr_head_ref }}/config/config_netlify_preview.json" > webapp/config.json + else curl -s "https://raw.githubusercontent.com/${{ inputs.pr_head_full_name }}/${{ inputs.pr_head_ref }}/config/config_netlify_preview_sdk.json" > webapp/config.json fi - name: ☁️ Deploy to Netlify diff --git a/config/config_netlify_preview_sdk.json b/config/config_netlify_preview_sdk.json new file mode 100644 index 00000000..784f0c7e --- /dev/null +++ b/config/config_netlify_preview_sdk.json @@ -0,0 +1,16 @@ +{ + "default_server_config": { + "m.homeserver": { + "base_url": "https://call-unstable.ems.host", + "server_name": "call-unstable.ems.host" + } + }, + "ssla": "https://static.element.io/legal/element-software-and-services-license-agreement-uk-1.pdf", + "matrix_rtc_session": { + "wait_for_key_rotation_ms": 3000, + "membership_event_expiry_ms": 180000000, + "delayed_leave_event_delay_ms": 18000, + "delayed_leave_event_restart_ms": 4000, + "network_error_retry_ms": 100 + } +}