16
What would you do if a feature works locally but breaks after deployment?
Tap to write answer
0 words | 0 charsPress Enter ↵ to reveal
Your Attempt
0 wordsRefined Model Answer
ReferenceI would first compare local and production environments, including build steps, environment variables, data shape, and browser behavior. Then I would inspect logs and source maps, and reproduce the issue in a production-like setup if possible. The reason I choose this approach is that deployment issues often come from mismatches between environments rather than the core code path. I would also think about whether the issue is related to caching, CDN behavior, or a feature flag. If the interviewer wants more detail, I would explain how I would add safeguards to prevent the same mismatch later.