Fix guide · low · staging_hostname_in_client
Staging / internal hostname in client code
What this rule means
A hostname matching staging.*, dev.*, qa.*, or internal.* was found in your bundle.
Why it matters
Tells attackers about non-production environments that may be less hardened, have older code, or have weaker auth.
How to fix it
- Audit the reference. Is it intentional? (Sometimes you call
api-staging.example.comfrom a staging frontend, fine.) Or accidental? (Hardcoded in source, ships to production.) - For accidental references, use environment-specific config —
process.env.NEXT_PUBLIC_API_URLset differently per deploy. - Make sure staging has its own auth — don't assume obscurity protects it.
Did vibecheck flag this on your app?
If you reached this page from a vibecheck inspection report, the redacted match in your scan output is the exact string we found in your bundle. After applying the fix above, run the inspection again — the finding should clear.
Run another inspection