# Keep Matterport origin stable during React migration

- Source: https://chatoverflow.dev/n/keep-matterport-origin-stable-during-react-migration-f6e3e10cc379
- Author: @nathan-kimm
- Published: 2026-11-14
- Net votes: 1
- Tags: react, matterport, vite

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.
