API Works in Preview but Not on the Live Website? Compare Production Configuration
Use the provider's current official setup flow, work one non-sensitive screen at a time, protect credentials, test the smallest correct integration, publish it, and verify the live result.
You need an API, webhook, OAuth, affiliate, or external-service connection
The provider dashboard or documentation is unfamiliar
You want step-by-step help without exposing secrets
Preview and production may differ
Possible causes
Integration type is unclear
Frontend and backend responsibilities are mixed
Credentials or permissions are incomplete
Production configuration differs
HOW TO FIX IT
Work from the safest step to the harder repair.
Step 1. Open the provider's official developer or integration page and identify the exact product or connection type.
Step 2. Work one non-sensitive screen at a time. Screenshots can help an AI assistant explain visible fields and the next step.
Step 3. Stop sharing screenshots when secrets, tokens, passwords, private keys, signing secrets, session values, or sensitive personal data appear.
Step 4. Keep private credentials in protected server-side secret or environment-variable storage, never public frontend code.
Step 5. Implement the smallest connection, test normal and error behavior, and inspect sanitized logs before production.
Step 6. Publish or deploy only after verification, then test the live domain. For exact code, use Genesis Code Doctor's Code Store or Request a Code.
Need the actual code? Go to GenesisCodeDoctor.com to search the Code Store or request code for the exact platform, error, and repair you are working on.
1. Can you reproduce the exact problem? If no, collect evidence before editing. If yes, preserve the failing example.
2. Did something change immediately before the failure? If yes, inspect that revision, plugin/app, dependency, configuration, or deployment first.
3. Is there a low-risk configuration or isolated code cause you can test first? If yes, start there. If no, move to logs, requests, dependencies, and architecture.
4. Did the focused repair pass its checks and restore the original journey? If no, roll back or continue diagnosis. If yes, publish/deploy.
5. Does the real production URL now pass the same test? If no, compare production environment and caching. If yes, record the verified repair.
REPAIR FLOW
A visual path from symptom to verified production.
Observe→
Protect→
Isolate→
Repair→
Test→
Publish→
Verify live
BEFORE YOU PASTE CODE
Protect the working site first.
Confirm the code matches your platform, framework, version, affected route, and exact failure before applying it.
Read prerequisites and the README; never paste secrets, private customer data, tokens, cookies, or credentials into code or support conversations.
Apply the smallest relevant change to the intended files only, then run the available build/typecheck/tests and the original user journey.
Publish or deploy only after verification, test the live production URL, and keep the rollback point until the change is proven stable.
STOP AND GET HELP WHEN
Do not turn a repair into a larger outage.
Stop if the repair starts changing unrelated pages, layout, data, authentication, payments, or other working features outside the stated problem.
Stop if you do not have a checkpoint, backup, commit, theme duplicate, or another recoverable known-good state.
Stop if testing cannot distinguish whether the change actually fixed the original symptom.
HOW GENESIS HANDLES IT
Diagnose the exact failure before choosing a repair.
Genesis separates the visible symptom from the underlying technical cause. Run the supported diagnostic first, review the evidence, and then use a matching repair only when the failure is actually verified.
These labels describe implementation complexity and blast radius, not a guaranteed repair time.
COMMON QUESTIONS
Before you make the change
Should I start with the easiest website fix first?
Usually start with the lowest-risk, highest-confidence cause that can be verified and reversed. Do not choose an easy change merely because it is easy if the evidence points somewhere else.
Do I need to publish after changing website code?
Many platforms separate saved or preview changes from production. After testing, use the platform's Publish, Republish, Deploy, or equivalent production action when required, then verify the live URL.
Where can I get code for the exact repair?
Use GenesisCodeDoctor.com to search the Code Store. If no compatible package matches the platform and verified problem, use Request a Code rather than forcing a generic snippet.
Once you know the platform and the verified problem, search the Genesis Code Doctor Code Store for a matching package. If the exact integration or repair is not there, use Request a Code and describe the platform, official documentation, desired behavior, and sanitized error—never send your secret key.
Start with a free diagnostic. If Genesis verifies a problem and a compatible treatment exists, continue to the matching Code Store product or repair path. If you cannot find the exact code you need, request it at GenesisCodeDoctor.com rather than forcing a generic snippet into the wrong platform.