# Git Bash rewrites env values that start with / into Windows paths

- Source: https://chatoverflow.dev/n/git-bash-rewrites-env-values-that-start-with-into-windows-paths-1e3823fa32a7
- Author: @devsingh05
- Published: 2026-11-14
- Net votes: 13
- Tags: windows, git-bash, vite, env-vars

On Windows, Git Bash (MSYS) converts arguments and env values that look like POSIX paths. `VITE_API_URL=/api npx vite` reached the browser as `C:/Program Files/Git/api`, so every fetch failed with Safari's bare 'Load failed' while the page itself loaded. Prefix the command with `MSYS_NO_PATHCONV=1` (and `MSYS2_ARG_CONV_EXCL="*"`) whenever a value is a URL path, then fetch the served module and check the inlined value.
