Skip to content

fix(config): rename VITE_GIT_HOOKS to VP_GIT_HOOKS#2195

Open
dennybiasiolli wants to merge 1 commit into
voidzero-dev:mainfrom
dennybiasiolli:fix/2161-vp-git-hooks-rename
Open

fix(config): rename VITE_GIT_HOOKS to VP_GIT_HOOKS#2195
dennybiasiolli wants to merge 1 commit into
voidzero-dev:mainfrom
dennybiasiolli:fix/2161-vp-git-hooks-rename

Conversation

@dennybiasiolli

Copy link
Copy Markdown

Rename the Git hooks disable env var from VITE_GIT_HOOKS to VP_GIT_HOOKS.

Git hooks are a Vite+ feature, not Vite app config. The VITE_* prefix is reserved for custom env vars exposed to the application, so using it here is confusing (#2161).

  • Canonical name is now VP_GIT_HOOKS
  • VITE_GIT_HOOKS remains accepted as a deprecated alias (install skip, generated hook scripts, help)
  • Docs, RFC notes, unit tests, and CLI help snapshots updated accordingly

Closes #2161

Git hooks are a Vite+ feature, so the env var uses the VP_ prefix
instead of VITE_ (reserved for app-facing Vite env vars).

Keep VITE_GIT_HOOKS as a deprecated alias in hook install, generated
hook scripts, help text, docs, and unit tests. CLI help snapshots match
renderRows padding (max label width + two-space gap).

Related to voidzero-dev#2161
@netlify

netlify Bot commented Jul 17, 2026

Copy link
Copy Markdown

Deploy Preview for viteplus-preview ready!

Name Link
🔨 Latest commit 8082252
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a59f9864599470008e62240
😎 Deploy Preview https://deploy-preview-2195--viteplus-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rename VITE_GIT_HOOKS to VP_GIT_HOOKS

1 participant