Opening the book…
A hardcoded URL or team ID works in dev and silently points prod at dev after the first import. Environment variables travel with the solution and get their values per environment — that is the whole feature.
API base URLs, SharePoint site URLs, Teams IDs, feature toggles: all environment variables, set at import time. Grep the app for tenant-specific strings before every export.