Skip to content

Add staging mirror: dual-upload to production and staging#3

Open
sestinj wants to merge 1 commit intomainfrom
staging-env
Open

Add staging mirror: dual-upload to production and staging#3
sestinj wants to merge 1 commit intomainfrom
staging-env

Conversation

@sestinj
Copy link
Owner

@sestinj sestinj commented Feb 8, 2026

Summary

  • When THREADER_STAGING_CONVEX_SITE_URL is set, the uploader sends each session to both production and staging Convex backends
  • Production upload is required (affects retry logic); staging is best-effort (failures logged as warnings)
  • Refactored upload, upload_create, upload_append, upload_finalize to accept a base_url parameter

Test plan

  • Set THREADER_STAGING_CONVEX_SITE_URL to staging URL, verify sessions appear on both dashboards
  • Set THREADER_STAGING_CONVEX_SITE_URL to a bad URL, verify production still works and staging failures are logged

Generated with Claude Code


Continue Tasks: ✅ 9 no changes — View all

When THREADER_STAGING_CONVEX_SITE_URL is set, the uploader sends
each session to both production (required) and staging (best-effort).
Staging failures are logged as warnings and don't affect production
uploads or retry logic.

Refactored upload methods to accept a base_url parameter instead of
calling convex_site_url() inline.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant