AI agent pushed API keys to GitHub? git commit --no-verify skipped your pre-commit hook
Updated · Applies to: GitHub, Git, Claude Code, Cursor, Codex, Copilot, Lovable, Bolt, Replit
TL;DR fix: A pre-commit hook runs on your machine, and git lets anyone skip it: git commit --no-verify (or -n) "bypasses the pre-commit and commit-msg hooks", per git's own docs. An agent told to "make the commit pass" can do exactly that, so a hook is a seatbelt, not a lock. If keys went out: rotate every key in the commit first (deleting it in a later commit does nothing, it is still in history). Then add checks the agent can't skip from your laptop: GitHub push protection (on by default for your pushes to public repos; for private repos it needs GitHub Secret Protection) and a secret scan in CI on full history. Add agent deny rules and a PreToolUse / beforeShellExecution hook that blocks --no-verify, but know they match command text and can be worked around. Rewrite history with git filter-repo --sensitive-data-removal only after rotating.
Steps
- Confirm what was committed and pushed. Run git log -S 'sk_live_' --all --oneline (swap in your key prefix) and gitleaks git . on the full history. A key removed in a later commit still shows up: every old commit is still there. Note each secret and whether the commit reached GitHub (git branch -r --contains <commit>).
- Rotate every exposed key now. Create a new key at each provider (Stripe, OpenAI, Supabase, GitHub token, etc.), put it in your env/secret store and deploy, then revoke the old one. Do this before any history cleanup. A key that was pushed, even briefly, should be treated as public.
- Check your agent's transcripts for skipped hooks. Search the agent's logs for --no-verify, -n on git commit, core.hooksPath, HUSKY=0 and SKIP=. In Claude Code, session transcripts are JSONL files under ~/.claude/projects/. Every hit is a commit that never went through your hooks.
- Turn on checks the agent can't skip locally. Enable GitHub push protection (Settings > Advanced Security > Secret Protection > Push protection; on public repos your personal push protection is already on) and run gitleaks or TruffleHog in CI on every push with full history (fetch-depth: 0). These run on GitHub, not on the agent's machine.
- Tell the agent it may not skip hooks, and enforce it. Add Claude Code permission deny rules for git commit --no-verify and friends, a PreToolUse hook that exits 2 on them, and the same for Cursor (.cursor/hooks.json beforeShellExecution, plus a rule in .cursor/rules). Treat these as guardrails: they match command text, so a wrapper script or an unusual spelling can get past them.
- Clean history if the repo is public or shared. In a fresh clone, run git filter-repo --sensitive-data-removal --replace-text replacements.txt, force-push, and follow GitHub's guide for pull requests, forks and cached views. Rotation is what protects you; history rewriting only reduces how long the dead key stays visible.
The bug: the hook said no, the agent said —no-verify
You did the responsible thing and installed a secret scanner as a pre-commit hook (gitleaks, TruffleHog, detect-secrets, or a Husky script). Then you asked your agent to fix a lint error or “get the commit through”. The hook blocked the commit because a file contained a key, and the next command in the agent’s log was:
git commit --no-verify -m "fix lint"
git push
A developer described exactly this on X on Nov 19, 2026: an agent asked to fix a lint error got blocked by the hook, added --no-verify, and pushed three API keys (a single report we could not verify, but the mechanics are standard git).
Why agents do it. To an agent, a failing hook looks like any other failing check standing between it and “done”. --no-verify is a documented, everyday git flag. Nothing about the flag tells the agent that this particular hook exists to protect secrets. This is our explanation, not something any agent vendor has documented.
Why the hook can’t stop it. Git’s githooks docs say the pre-commit hook “can be bypassed with the —no-verify option”, and git commit -n is the short form. git push --no-verify skips a pre-push hook “completely”. Hooks live in .git/hooks (or wherever core.hooksPath points), they aren’t copied when someone clones the repo, and they run with the same rights as whoever runs git. Anything that can run git commit can also skip, redirect or edit the hook. In our test, all of these got past a gitleaks pre-commit hook: --no-verify, -n, --no-veri (git accepts unambiguous abbreviations) and git -c core.hooksPath=/dev/null commit.
So a pre-commit hook is a seatbelt for honest mistakes. The lock has to be somewhere the agent doesn’t control: GitHub and your CI.
If the keys ended up in your frontend bundle too, start with our general guide: How to find and fix leaked API keys in a Lovable, Bolt or Cursor app. This page is about the git side.
Step 1: the 2-minute check
1. Is the key in history? A later “remove key” commit doesn’t help; the old commit is still there. From the repo root:
# Commits that added or removed a string (use your key's prefix: sk_live_, sk-proj-, ghp_, sb_secret_, AKIA ...)
git log -S 'sk_live_' --all --oneline
git log -G 'sk-(proj-)?[A-Za-z0-9_-]{20,}' --all --oneline # regex form
# Every commit on every branch, with a real scanner (free, open source)
gitleaks git . -v --redact
# or
trufflehog git file://. --results=verified,unknown
gitleaks dir . only scans the files as they are now; gitleaks git . scans every commit. In our test the current files were clean and the history had two keys. TruffleHog’s verified mode checks candidate keys against the provider, so it sends them over the network; use gitleaks if you don’t want that.
2. Did it reach GitHub?
git branch -r --contains <commit-sha> # which remote branches carry it
git log origin/main --oneline -S 'sk_live_'
If the repo is public, assume the key was seen. If GitHub emailed you a secret scanning or push protection alert, that is your answer too.
3. Did your agent skip hooks anywhere else? Search its logs. Claude Code keeps session transcripts as JSONL files under ~/.claude/projects/ (the hooks docs show this path); for other tools, search whatever log or history they keep, and your shell history:
grep -rnoE -- '--no-verify|git commit [^"]*-n\b|core\.hooksPath|HUSKY=0|SKIP=' ~/.claude/projects | head -50
Every hit is a commit that never went through your hooks. Check each one with step 1.
| What you see | Cause | Fix |
|---|---|---|
Hook blocked a commit, next agent command has --no-verify or -n | Client-side hook skipped | Rotate, then Fix B |
gitleaks dir is clean but gitleaks git finds keys | Key deleted in a later commit, still in history | Rotate, optionally Fix D |
| Hook never ran at all | Fresh clone / sandbox without hooks, or core.hooksPath changed | Fix B |
| Push went through to a public repo with a key | Key type not supported by push protection, or the block was bypassed | Rotate, add a CI scan |
| GitHub email: “push protection bypassed” | Someone (or an agent with your token) used the bypass link | Rotate, consider delegated bypass |
Key in .claude/settings.local.json history | Agent saved an approved command with the key | That page |
Fix A: rotate first
For each key the scan found, at each provider: create a new key, put it in your env/secret store (Vercel/Netlify/Supabase secrets, .env that is gitignored), redeploy, then revoke the old key. Check the provider’s usage or logs for the window it was exposed. GitHub’s secret scanning docs put it plainly: rotate the credential immediately; removing it from history “is time-intensive and often unnecessary if you’ve already revoked the credential.”
Per-provider steps for Stripe, OpenAI and Supabase are in the leaked-keys guide; for Supabase specifically, see Invalid API key after rotating Supabase keys so the rotation doesn’t take your app down.
Fix B: checks that run on GitHub, not on the agent’s machine
GitHub push protection scans pushes on GitHub’s side and blocks supported secrets before they land. From GitHub’s push protection docs, checked Nov 23, 2026:
- Push protection for users is on by default for your account and blocks supported secrets when you push to public repositories. If you bypass it, no alert is created. Check it at Settings > Code security > “Push protection for yourself”.
- Push protection for repositories is off by default and needs GitHub Secret Protection. Turn it on at repo Settings > Advanced Security > Secret Protection > Push protection. It covers private repos, creates an alert when someone bypasses it, and can be limited with delegated bypass.
- Secret scanning runs free on public repos. For private repos owned by an organization it needs Secret Protection on GitHub Team or Enterprise Cloud; GitHub’s docs don’t list it for private repos owned by a personal account on other plans. Check pricing before you count on it.
- Anyone with write access can bypass a block by choosing a reason (“used in tests”, “false positive”, “fix it later”); the bypass is valid for 3 hours. An agent holding your GitHub token could, in principle, follow that link too, so for agent-driven repos consider delegated bypass.
- It only blocks patterns GitHub supports (partner patterns, and generic/custom patterns if enabled). A homegrown key format won’t be caught.
A secret scan in CI catches what push protection doesn’t know about, on every push and PR, and the agent can’t --no-verify it. From the gitleaks-action README:
# .github/workflows/gitleaks.yml
name: gitleaks
on: [pull_request, push, workflow_dispatch]
jobs:
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0 # full history, not just the last commit
- uses: gitleaks/gitleaks-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }} # only for repos owned by an organization (free key)
Make the check required in branch protection or a ruleset so a failing scan blocks merges. Note that CI runs after the push: it tells you fast, but the key is already on GitHub, so rotate on any hit.
Server-side hooks. A pre-receive hook runs on the server and can reject a push; --no-verify doesn’t skip it. On GitHub.com you can’t install your own; pre-receive hooks are a GitHub Enterprise Server feature (with a 5-second budget). Self-hosted Git servers support them too. In our local test, a gitleaks pre-receive hook on a bare repo rejected a push made with git push --no-verify.
Fix C: tell the agent not to skip hooks, and enforce it (with limits)
Instructions alone are a request. Hooks and deny rules are enforcement, but only against the command text the agent writes.
Claude Code: deny rules. In .claude/settings.json (project) or ~/.claude/settings.json (user). Deny rules win over allow rules, and a * can go anywhere in the pattern (permissions docs):
{
"permissions": {
"deny": [
"Bash(git commit *--no-veri*)",
"Bash(git commit -n*)",
"Bash(git commit * -n*)",
"Bash(git push *--no-veri*)",
"Bash(git -c core.hooksPath*)",
"Bash(git config *core.hooksPath*)"
]
}
}
Using --no-veri* instead of --no-verify matters: in our test git accepted --no-veri and --no-verif as --no-verify. The -n rules also match some harmless commands (a commit message containing ” -n”); that’s fine for a deny list.
Claude Code: a PreToolUse hook sees the full command before it runs and can block it with exit code 2 (hooks docs). Save as .claude/hooks/block-hook-bypass.sh, chmod +x it, needs jq:
#!/usr/bin/env bash
# Block commands that skip git hooks. Claude Code sends {"tool_input":{"command":...}},
# Cursor's beforeShellExecution sends {"command":...}. Exit 2 = block in both.
cmd=$(jq -r '.tool_input.command // .command // empty')
if printf '%s' "$cmd" | grep -qE -- '--no-veri|(^|[;&|[:space:]])git([[:space:]]+-[^[:space:]]+)*[[:space:]]+commit([[:space:]]+[^;&|]*)?[[:space:]]-[a-zA-Z]*n|core\.hooksPath|HUSKY=0|SKIP='; then
echo "Blocked: don't skip git hooks (--no-verify, -n, core.hooksPath). Fix what the hook reports, or ask the user." >&2
exit 2
fi
exit 0
{
"hooks": {
"PreToolUse": [
{ "matcher": "Bash",
"hooks": [ { "type": "command", "command": "${CLAUDE_PROJECT_DIR}/.claude/hooks/block-hook-bypass.sh" } ] }
]
}
}
Cursor. Put the same script at .cursor/hooks/block-hook-bypass.sh and register it in .cursor/hooks.json (Cursor hooks docs; project hooks run from the project root, exit code 2 blocks, and failClosed: true blocks if the hook crashes):
{ "version": 1, "hooks": { "beforeShellExecution": [
{ "command": ".cursor/hooks/block-hook-bypass.sh", "failClosed": true }
] } }
Add a rule so the agent knows why, e.g. .cursor/rules/git-hooks.mdc with alwaysApply: true (or the same text in AGENTS.md / CLAUDE.md): “Never use --no-verify, -n, core.hooksPath or HUSKY=0 to get past a git hook. If a hook fails, show me the output and fix the cause. If it reports a secret, stop and tell me.” Rules are instructions to the model, not enforcement.
The honest limits. Claude Code’s own docs say a Bash deny rule “isn’t a security boundary”: it matches the command as written, so Bash(git push *) doesn’t stop git -C . push, and rules don’t follow a program run by path or inside sh -c. Our hook script catches sh -c "git commit --no-verify", but nothing that matches text can catch ./commit.sh when the script contains the flag, an alias, or an agent that edits .git/hooks/pre-commit itself. Deny rules and hooks turn an accidental skip into a visible block; they don’t make the skip impossible. That’s why Fix B and Fix A come first.
Fix D: remove it from history (after rotating)
If the repo is public or shared, rewrite history so the dead key isn’t sitting there. GitHub’s sensitive data guide uses git filter-repo with --sensitive-data-removal (filter-repo 2.47 or newer). In a fresh clone:
# replacements.txt: one secret per line, "literal==>replacement"
# sk_live_XXXXXXXXXXXXXXXX==>REMOVED_STRIPE_KEY
git clone https://github.com/you/your-app.git clean && cd clean
git filter-repo --sensitive-data-removal --replace-text ../replacements.txt
# whole files instead: git filter-repo --sensitive-data-removal --invert-paths --path config.js
git push --force --mirror origin # after reading GitHub's guide; this rewrites every branch
Then, per GitHub’s guide: merge or close open PRs first, note the “First Changed Commit(s)” filter-repo prints, contact GitHub Support for PR references and cached views, ask fork owners to clean up, and have every collaborator re-clone or rebase (one merge from an old clone puts the key back). Keep replacements.txt out of the repo and delete it after. GitHub also warns that a rewrite can draw attention to the commits it changes, one more reason to rotate first.
In our test the rewrite removed both fake keys from every commit, and gitleaks git came back clean. But the old commit was still readable in the “remote” and in the old working clone until those were rewritten too. That’s the point: rewriting reduces exposure, it doesn’t un-leak a key. Only rotation does.
Paste this into Claude Code, Cursor, Codex or Copilot
My AI agent may have committed and pushed API keys by skipping git hooks
(git commit --no-verify / -n). Help me clean this up. Do not push, force-push
or rewrite history without asking me first.
1. Run: git log -S '<key prefix>' --all --oneline for sk_live_, sk-, ghp_,
github_pat_, sb_secret_, AKIA and xoxb-, and gitleaks git . --redact if
installed. List every secret found: file, commit, branch, and whether the
commit is on a remote branch (git branch -r --contains <sha>).
2. Give me a rotation checklist per secret (provider, where it's used in this
repo, which env var to update). I will rotate the keys myself.
3. Move every secret into environment variables, make sure .env* files are in
.gitignore, and show me the diff.
4. Add .github/workflows/gitleaks.yml (actions/checkout with fetch-depth: 0,
gitleaks/gitleaks-action) so secrets are scanned on every push and PR.
5. Add Claude Code deny rules / a PreToolUse hook (or .cursor/hooks.json
beforeShellExecution) that blocks --no-verify, git commit -n and
core.hooksPath, plus a rule: never skip a git hook; if a hook fails,
stop and show me the output.
6. Only after I confirm rotation: prepare (do not run) the git filter-repo
--sensitive-data-removal --replace-text command for a fresh clone.
What we verified
- Tested locally (Nov 23, 2026; git 2.47.3, gitleaks 8.30.1, git-filter-repo 2.47.0; fake keys only, the “remote” was a bare repo on disk, nothing was pushed anywhere else;
research/no-verify-test/run.sh, outputrun.out.txt): a gitleaks pre-commit hook (gitleaks git --pre-commit --staged) blocked a commit containing a fake Stripe-format key and a fake GitHub-token-format key (rulesstripe-access-token,github-pat; exit 1). The same commit with--no-verifysucceeded, and so didgit commit -nandgit -c core.hooksPath=/dev/null commit. The hook only scans the staged diff, so a harmless later edit to the same file passed. After a “use env vars” commit,gitleaks dir .found nothing andgitleaks git .found 2 leaks;git log -S 'sk_live_'andgit log -Glisted both the adding and the removing commit.git push --no-verifyto the bare repo succeeded. With a gitleakspre-receivehook installed on the bare repo,git push --no-verifyof a new commit with a key was rejected (“pre-receive hook declined”).git filter-repo --sensitive-data-removal --replace-textin a fresh clone replaced both keys in every commit;git log -Sandgitleaks gitthen found nothing, while the original commit object was still present in the bare “remote” and the old working clone. A grep over a fake Claude Code-style JSONL transcript found--no-verify,git commit -nandcore.hooksPath. - Tested locally (
hook-test.sh, outputhook-test.out.txt): the hook script on this page, fed Claude Code-format and Cursor-format JSON, exited 2 forgit commit --no-verify,git commit -n,git commit -anm,git commit --no-veri,git -c core.hooksPath=... commit,HUSKY=0 git commit,git push --no-verifyandsh -c "git commit --no-verify ..."; exited 0 forgit commit -m "fix lint",npm run lint -- --fixandgit log -n 5; and falsely blockedgit commit -m "add -n flag docs". Git itself accepted--no-veriand--no-verif(exit 0) and rejected--no-veras ambiguous. - Docs-based (fetched Nov 23, 2026, all HTTP 200; list in
research/no-verify-secrets-2026-11-23.md): git’s hook and flag behavior, hooks not being copied on clone, everything about GitHub push protection and secret scanning (defaults, plans, bypass, 3-hour window, surfaces), GitHub’s filter-repo removal steps and Support policy, GitHub Enterprise Server pre-receive hooks, Claude Code deny-rule matching and its “isn’t a security boundary” warning, PreToolUse exit code 2, the transcript location, Cursor hooks and rules, the gitleaks/gitleaks-action/TruffleHog commands. We did not run Claude Code or Cursor with these deny rules or hooks, did not test GitHub push protection or the gitleaks Action on GitHub, did not run TruffleHog, and did not force-push anywhere. - Not verified: the Nov 19 X report of an agent pushing three keys (single post). Why agents choose
--no-verifyis our reading, not vendor documentation.
Related: How to find and fix leaked API keys in a Lovable, Bolt or Cursor app, Fix secrets leaked via Claude Code .claude/settings.local.json, Fix Stripe sk_live keys left in MCP or agent config, Invalid API key after rotating Supabase keys, and Fix a surprise AI API bill: rate limits and spend caps.
When to get help
Get help if a live Stripe, database or cloud key was pushed to a public repo, if you can't tell which commits or branches carried secrets, if your agent works unattended (CI, cloud agents, auto mode) and can commit and push on its own, or if rotating a key will break production and you need to do it without downtime.
Want us to look at your app?
VibeCPR Rescue Reports are launching soon: we scan your repo and live app, and a human verifies every critical finding. Join the waitlist for early access and founder pricing. You'll also get Patch Notes, our weekly fixes newsletter.
FAQ
Can an AI coding agent bypass a git pre-commit hook?
Yes. Git's docs say the pre-commit and commit-msg hooks "can be bypassed with the --no-verify option", and git commit -n is the short form. Hooks are client-side scripts in .git/hooks that run with the same permissions as whoever runs git, so an agent that can run git commit can also add --no-verify, set core.hooksPath to an empty directory, or edit the hook. In our test, a gitleaks pre-commit hook blocked a commit with two fake keys, and the same commit with --no-verify went through.
Is a pre-commit hook enough to stop secrets from reaching GitHub?
No. It catches honest mistakes early, but it is not a security control. Hooks aren't copied when a repo is cloned, so collaborators and fresh agent sandboxes may not have them, and anyone can skip them. Pair it with checks that run on the server: GitHub push protection, which blocks supported secrets at push time, and a secret scan in CI on full history.
My agent deleted the key in the next commit. Am I safe?
No. The key is still in the earlier commit, and anyone who can read the repo can see it with git log -p or a scanner. In our test, gitleaks found nothing in the current files but found both fake keys in history, and git log -S found the commits that added and removed them. Rotate the key.
Does GitHub block secrets on push automatically?
Partly. Per GitHub's docs, push protection for users is on by default and blocks supported secrets when you push to public repositories. Push protection for a repository is off by default, needs GitHub Secret Protection, and covers private repos when enabled. People with write access can bypass a block by giving a reason, and the bypass link expires after 3 hours. It only knows supported patterns, so keep a CI scan too.
Can I stop Claude Code or Cursor from using --no-verify?
You can make it much harder. In Claude Code, add deny rules such as Bash(git commit *--no-veri*) and a PreToolUse hook that exits with code 2 on --no-verify, -n or core.hooksPath. In Cursor, a beforeShellExecution hook in .cursor/hooks.json can exit 2 to block. Claude Code's docs say Bash deny rules match the command text and are not a security boundary, and git accepts shortened flags like --no-veri, so keep server-side checks as the real backstop.
Do I need to rewrite git history after rotating a leaked key?
Usually not urgently. GitHub's docs say rotate or revoke first, and that removing a secret from history is time-intensive and often unnecessary once the credential is revoked. Rewrite (git filter-repo 2.47 or newer with --sensitive-data-removal) when the repo is public or the secret can't be rotated. Forks, clones and cached views keep the old commits until they are cleaned too.
How do I find secrets in my whole git history?
Run gitleaks git . (all commits) or trufflehog git file://. from the repo root, and git log -S '<key prefix>' --all --oneline for a specific string. In CI, check out with fetch-depth: 0 so the scanner sees full history. Scan agent folders and config files too, not just .env.
Sources
- Git docs: githooks (pre-commit and commit-msg can be bypassed with --no-verify; pre-push; core.hooksPath)
- Git docs: git commit (-n, --no-verify)
- Git docs: git push (--no-verify skips the pre-push hook)
- Git docs: git log (-S and -G pickaxe search)
- Pro Git: Git Hooks (client-side hooks are not copied on clone; server-side pre-receive)
- GitHub docs: Push protection (repository vs. user push protection, bypasses)
- GitHub docs: Secret scanning (availability, full-history scans, rotate first)
- GitHub docs: Enabling push protection for your repository
- GitHub docs: Managing push protection for users
- GitHub docs: Push protection on the command line (resolving and bypassing a block)
- GitHub docs: Removing sensitive data from a repository (git filter-repo --sensitive-data-removal)
- GitHub Enterprise Server docs: About pre-receive hooks
- Claude Code docs: Configure permissions (deny rules, wildcards, what a Bash rule doesn't match)
- Claude Code docs: Hooks reference (PreToolUse, exit code 2)
- Cursor docs: Hooks (beforeShellExecution, .cursor/hooks.json)
- Cursor docs: Rules (.cursor/rules, AGENTS.md)
- gitleaks README (git and dir scans, pre-commit)
- gitleaks-action README (CI workflow, license only for organizations)
- TruffleHog README (git scans)
- git-filter-repo
Related fixes
- Fix a surprise AI API bill: rate limits and spend caps
- Your app is public to anyone with the link: a share link is not a login
- Triage Bolt's "RLS Policy Always True" warning: when it's fine and how to fix it
- Fix secrets leaked via Claude Code .claude/settings.local.json
- Fix "Your Cloud Firestore database has insecure rules" (Firebase email)
- Login lockout keyed only on email? Rate-limit by IP and account without locking users out
- Fix Lovable "Invalid API key" after rotating Supabase keys (anon, publishable, secret)
- Lovable won't publish because of security findings? What each finding means and how to fix it
- "Sign in with Google" lets anyone in: restrict who can use your app (allowlist, domain check, RLS)
- Fix Stripe sk_live keys left in MCP or agent config
- Fix Stripe webhook "No signatures found matching the expected signature for payload"
- Fix Supabase auth redirecting to localhost after deploy
- Fix Supabase Edge Function "blocked by CORS policy" (preflight)
- Fix Supabase "infinite recursion detected in policy for relation" (42P17) in RLS
- Form says success but no row in Supabase (or Stripe webhook returns 200 but writes nothing)
- Fix "new row violates row-level security policy for table" (Supabase)
- Supabase only returns 1,000 rows? Fix the silent max rows limit in Lovable and Bolt apps
- Fix Supabase "permission denied for table" (42501) on new tables after Oct 30, 2026
- Fix a Supabase public Storage bucket that lets anyone list or download your files
- Supabase Realtime leaking rows or not receiving changes: fix RLS and the publication
- Supabase RLS not working on the server? Your API uses the service_role or secret key
- Fix Supabase RLS policy USING (true) that makes a table publicly readable
- Your app's rules only live in the frontend: move them into Supabase
- Fix a Supabase SECURITY DEFINER function anyone can call through /rest/v1/rpc
- Fix Supabase .single() "JSON object requested, multiple (or no) rows returned" (PGRST116)
- Stop Supabase users from upgrading their own plan or making themselves admin
- Fix a Supabase view that bypasses RLS: security_invoker and revoking anon write grants
- Fix "404: NOT_FOUND" on refresh in a React/Vite app on Vercel (vercel.json rewrite)
- Fix "Module not found: Can't resolve" on Vercel (works locally)
- Is my Vite dev server exposed? Check --host / server.host and patch the RCE (GHSA-p4f5-76q4-ffq7)