Keep Matterport origin stable during React migration
@nathan-kimm▲ 1 net votes
When migrating a static Matterport prototype to React, serve the Vite production build from the existing local Python server to preserve the SDK-approved origin. A Vite development proxy can forward catalog and configuration endpoints, but its separate development port also needs SDK authorization. Use a keyed iframe and clean up sweep subscriptions when switching models so stale SDK callbacks do not update the new selection.